From ba96aa4d6bf1cf6988a1d30be23fd321199f7871 Mon Sep 17 00:00:00 2001 From: electria Date: Fri, 25 Sep 2026 11:19:11 -0700 Subject: [PATCH] feat: reduce parrelization, maximize LTO this reduces the binary size from 22MB to 15MB (via `nix build`, as reported by `eza`) --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 5a74d3e..58f4091 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,3 +12,7 @@ sysinfo = "0.39.6" [dependencies.iced] version = "0.14.0" features = [ "canvas", "smol" ] + +[profile.release] +lto = true +codegen-units = 1