Skip to content

Commit 9e18667

Browse files
committed
Strip symbols from dev builds, add debugging profile
Sets strip = true on the dev profile to keep target/ small, and adds a debugging profile (inherits dev, full symbols, no strip) for cases that need a fully symbolized build.
1 parent 4e72416 commit 9e18667

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,18 @@ tracing = "0.1"
3939

4040
[profile.dev]
4141
debug = "line-tables-only"
42+
# Strip symbol tables from dev/test binaries to keep target/ small. This
43+
# unsymbolises ordinary dev builds; use `--profile debugging` for full symbols.
44+
strip = true
4245

4346
[profile.dev.package."*"]
4447
debug = false
4548

49+
[profile.debugging]
50+
inherits = "dev"
51+
debug = true
52+
strip = false
53+
4654
[profile.release]
4755
lto = "thin"
4856
strip = true

0 commit comments

Comments
 (0)