rust: tweak Cargo flags for faster `cargo test`
What changed, and why it matters
This commit only changes Rust compiler settings used when running automated tests. It disables link-time optimization, increases parallel compilation units, and turns off optimization to make tests run faster. There is no change to the actual firmware code, no security fix, and no security-relevant behavior change.
No security action needed. This is a benign build/development configuration change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds three lines to the [profile.test] section of src/rust/Cargo.toml: lto = false, codegen-units = 256, and opt-level = 0. These are standard development/test profile tuning flags that reduce compile time and are not applied to release firmware builds. They do not alter runtime security properties of shipped firmware.
Changed components
src/rust/Cargo.toml test profileInspect captured patch +5 / −0
diff --git a/src/rust/Cargo.toml b/src/rust/Cargo.toml
index 162454d..855b4f8 100644
--- a/src/rust/Cargo.toml
+++ b/src/rust/Cargo.toml
@@ -96,3 +96,8 @@ incremental = true
[profile.test]
debug-assertions = true
overflow-checks = true
+
+# Speed up `cargo test`
+lto = false
+codegen-units = 256
+opt-level = 0
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.