perf: release profile — opt-level=z, lto, strip, panic=abort (7.8→4.2 MB)
This commit is contained in:
@@ -67,3 +67,10 @@ notify = { version = "7", features = ["serde"] }
|
|||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
tempfile = "3"
|
tempfile = "3"
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
opt-level = "z" # optimise for size
|
||||||
|
lto = true # cross-crate dead-code elimination
|
||||||
|
codegen-units = 1 # single unit = better LTO
|
||||||
|
strip = true # strip symbols from final binary
|
||||||
|
panic = "abort" # drop unwinding machinery (~200 KB)
|
||||||
|
|||||||
Reference in New Issue
Block a user