From 0096456467feb61c5042df5b846a556d975a3234 Mon Sep 17 00:00:00 2001 From: Alexander Zaitsev Date: Mon, 23 Mar 2026 11:19:22 +0100 Subject: [PATCH 1/2] feat: Enable FatLTO and CU1 for the Dist profile --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a72f1c5..fbd6075 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,4 +28,5 @@ cargo_metadata = "0.20" # The profile that 'dist' will build with [profile.dist] inherits = "release" -lto = "thin" +codegen-units = 1 +lto = true From cf3f4648128736e22024cf8b0ee7609cb32c30a8 Mon Sep 17 00:00:00 2001 From: Alexander Zaitsev Date: Mon, 23 Mar 2026 13:29:33 +0100 Subject: [PATCH 2/2] feat: configure release profile with codegen units and FatLTO --- Cargo.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fbd6075..29549c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,8 +25,10 @@ inquire = "0.7.5" cargo_toml = "0.22" cargo_metadata = "0.20" +[profile.release] +codegen-units = 1 +lto = true + # The profile that 'dist' will build with [profile.dist] inherits = "release" -codegen-units = 1 -lto = true