reduce debug output in release/bench builds

This reduces the binary size from 154 MiB to 70 MiB (#70 progress).
Tools like `cargo flamegraph` still work fine.

As suggested by "EarthFeet" on reddit:
https://www.reddit.com/r/rust/comments/rw0jad/cargos_strip_profile_option_has_been_stabilized/hra193k/
This commit is contained in:
Scott Lamb
2022-01-05 09:55:30 -08:00
parent 9b241c80dc
commit 0406e09ca4
2 changed files with 4 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ tempfile = "3.2.0"
opt-level = 2
[profile.release]
debug = true
debug = 1
[profile.bench]
debug = true
debug = 1