From 75c0b5c5c95ef309d428d086894592cf75cf2fba Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Wed, 17 Jun 2026 11:34:21 +0200 Subject: [PATCH] =?UTF-8?q?perf:=20release=20profile=20=E2=80=94=20opt-lev?= =?UTF-8?q?el=3Dz,=20lto,=20strip,=20panic=3Dabort=20(7.8=E2=86=924.2=20MB?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) 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)