mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-06-11 15:23:30 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user