minimized the binary size

This commit is contained in:
rbomze
2025-03-08 20:58:27 +01:00
committed by Cooper Quintin
parent 7eb61748d7
commit f69487853a

View File

@@ -1,3 +1,11 @@
[target.armv7-unknown-linux-gnueabihf] [target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc" linker = "arm-linux-gnueabihf-gcc"
rustflags = ["-C", "target-feature=+crt-static"] rustflags = ["-C", "target-feature=+crt-static"]
# optimizations to reduce the binary size
[profile.release]
strip = true
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"