From 45ad468a0e681e1b78b80a9f84a36054df809714 Mon Sep 17 00:00:00 2001 From: Rudxain <76864299+Rudxain@users.noreply.github.com> Date: Fri, 4 Jul 2025 13:51:32 -0400 Subject: [PATCH] build: split `release` profile into `opt` --- Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 82d3b67..dc653f4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,9 +44,14 @@ tar = { version = "^0.4", optional = true } win32console = "^0.1.5" [profile.release] +lto = "thin" +codegen-units = 4 + +[profile.opt] +inherits = "release" opt-level = "s" codegen-units = 1 -lto = true +lto = "fat" strip = true panic = "abort"