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

@ -15,6 +15,8 @@ Each release is tagged in Git and on the Docker repository
* fix [#184](https://github.com/scottlamb/moonfire-nvr/issues/184): * fix [#184](https://github.com/scottlamb/moonfire-nvr/issues/184):
Moonfire NVR would stop recording on a camera that hit the live555 stale Moonfire NVR would stop recording on a camera that hit the live555 stale
file descriptor bug, rather than waiting for the stale session to expire. file descriptor bug, rather than waiting for the stale session to expire.
* progress on [#70](https://github.com/scottlamb/moonfire-nvr/issues/184):
shrink the binary from 154 MiB to 70 MiB by reducing debugging information.
## `v0.7.1` (2021-10-27) ## `v0.7.1` (2021-10-27)

View File

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