Include debug symbols in "bench" profile

Including full debug symbols makes the benchmark builds useful for
profiling too.
This commit is contained in:
Micah Elizabeth Scott 2023-07-05 14:03:29 -07:00
parent e7aa1d6b62
commit 3e8b8d035a
1 changed files with 6 additions and 0 deletions

View File

@ -86,3 +86,9 @@ lto = "thin"
codegen-units = 16
opt-level = 2
incremental = true
[profile.bench]
# For "cargo bench", which is only used by some crates.
# Inherits release build settings, but adds full debug symbols.
debug = 2
strip = "none"