fix(build): reduce release-build memory pressure on low-RAM devices (#303)

This commit is contained in:
Chummy 2026-02-16 23:40:40 +08:00 committed by GitHub
parent 23b0f360c2
commit 3fd901a5ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View file

@ -114,10 +114,10 @@ path = "src/main.rs"
[profile.release]
opt-level = "z" # Optimize for size
lto = true # Link-time optimization
codegen-units = 1 # Better optimization
strip = true # Remove debug symbols
panic = "abort" # Reduce binary size
lto = "thin" # Lower memory use during release builds
codegen-units = 8 # Faster, lower-RAM codegen for small devices
strip = true # Remove debug symbols
panic = "abort" # Reduce binary size
[profile.dist]
inherits = "release"