Skip to content

Commit e42c430

Browse files
committed
Enable full debug inforation for all cargo profiles
This is needed, so probe-run can get enough information to verify a test sucess even in release mode
1 parent d56b6e4 commit e42c430

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Cargo.toml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,27 @@ defmt-info = ["defmt"]
141141
defmt-warn = ["defmt"]
142142
defmt-error = ["defmt"]
143143

144+
# cargo build/run
144145
[profile.dev]
145-
debug = true
146+
debug = 2
146147
lto = true
147148

149+
# cargo test
150+
[profile.test]
151+
debug = 2
152+
opt-level = 3 # <-
153+
154+
# cargo build/run --release
148155
[profile.release]
149-
debug = true
156+
debug = 2
150157
lto = true
151158
opt-level = "s"
152159

160+
# cargo test --release
161+
[profile.bench]
162+
debug = 2
163+
opt-level = "s"
164+
153165
[[example]]
154166
name = "pwm"
155167
required-features = ["ld", "stm32f303xc"]

0 commit comments

Comments
 (0)