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
@@ -141,15 +141,27 @@ defmt-info = ["defmt"]
defmt-warn = ["defmt"]
defmt-error = ["defmt"]
+# cargo build/run
[profile.dev]
-debug = true
+debug = 2
lto = true
+# cargo test
+[profile.test]
+debug = 2
+opt-level = 3 # <-
+
+# cargo build/run --release
[profile.release]
-debug = true
+debug = 2
lto = true
opt-level = "s"
+# cargo test --release
+[profile.bench]
+debug = 2
+opt-level = "s"
+
[[example]]
name = "pwm"
required-features = ["ld", "stm32f303xc"]
