diff --git a/Cargo.toml b/Cargo.toml index 2df5fc9..09c20aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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)