fix(build): reduce release-build memory pressure on low-RAM devices (#303)
This commit is contained in:
parent
23b0f360c2
commit
3fd901a5ec
2 changed files with 6 additions and 4 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue