perf: release profile — opt-level=z, lto, strip, panic=abort (7.8→4.2 MB)
All checks were successful
CI / Check / Test (push) Successful in 2m54s
Architecture Docs / Generate diagrams (push) Successful in 2m38s

This commit is contained in:
2026-06-17 11:34:21 +02:00
parent a7e466011b
commit 75c0b5c5c9

View File

@@ -67,3 +67,10 @@ notify = { version = "7", features = ["serde"] }
# Testing
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)