cargo/config: build release bins with opt-level z

This yields a smaller binary and faster compile times than the default.

cf 5.6M binary in 2m 12s vs. 4.7M in 1m 39s on my machine.
This commit is contained in:
oopsbagel
2025-06-28 14:40:12 -07:00
parent 4d0427fe68
commit 6efe83b36d
+1
View File
@@ -29,6 +29,7 @@ rustflags = ["-C", "target-feature=+crt-static"]
# keep line numbers in stack traces for non-firmware binaries
debug = "limited"
lto = "fat"
opt-level = "z"
strip = "debuginfo"
# optimizations to reduce the binary size of firmware binaries