Skip to content

Commit c915534

Browse files
committed
add debuginfo to test --release
1 parent b61bdad commit c915534

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Cargo.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ defmt-info = []
3232
defmt-warn = []
3333
defmt-error = []
3434

35+
# cargo build/run
3536
[profile.dev]
3637
codegen-units = 1
3738
debug = 2
@@ -40,6 +41,7 @@ incremental = false
4041
opt-level = 3 # <-
4142
overflow-checks = true # <-
4243

44+
# cargo test
4345
[profile.test]
4446
codegen-units = 1
4547
debug = 2
@@ -48,6 +50,7 @@ incremental = false
4850
opt-level = 3 # <-
4951
overflow-checks = true # <-
5052

53+
# cargo build/run --release
5154
[profile.release]
5255
codegen-units = 1
5356
debug = 2
@@ -57,6 +60,16 @@ lto = 'fat'
5760
opt-level = 3 # <-
5861
overflow-checks = false # <-
5962

63+
# cargo test --release
64+
[profile.bench]
65+
codegen-units = 1
66+
debug = 2
67+
debug-assertions = false # <-
68+
incremental = false
69+
lto = 'fat'
70+
opt-level = 3 # <-
71+
overflow-checks = false # <-
72+
6073
# uncomment this to switch from the crates.io version of defmt to its git version
6174
# check app-template's README for instructions
6275
# [patch.crates-io]

0 commit comments

Comments
 (0)