Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,24 +75,28 @@ ignore = "=0.4.33"
strip = true
lto = true
opt-level = "s"
codegen-units = 1

# Test release semantics without the cost of full-LTO links for every test binary.
# Shipped binaries still use [profile.release].
[profile.ci-release]
inherits = "release"
codegen-units = 16
lto = false
strip = "none" # unstripped test binaries => usable backtraces on failure

# Benchmark with release codegen, faster thin-LTO links, and profiler symbols.
[profile.perf]
inherits = "release"
codegen-units = 16
lto = "thin"
strip = "none"

# The Node addon (crates/socket-patch-node) for hosts that load it
# in-process: release semantics without the slow full-LTO link.
[profile.addon]
inherits = "release"
codegen-units = 16
lto = "thin"

# Optimize dependencies for test speed. Workspace crates stay unoptimized;
Expand Down
Loading