From 261bf440dda9baabde815e6acfb32ba2f601ec5b Mon Sep 17 00:00:00 2001 From: simonsan <14062932+simonsan@users.noreply.github.com> Date: Mon, 18 Nov 2024 20:05:05 +0100 Subject: [PATCH] chore: add max-perf-at-small-bin profile Results in 38.5% size reduction on Windows 11, and 33% less on openSuse. Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com> --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index c25a13884..024a200c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -162,6 +162,10 @@ codegen-units = 1 strip = true panic = "abort" +[profile.max-perf-at-small-bin] +inherits = "release" +opt-level = "z" + [profile.test] opt-level = 1 debug = true