From 67e27cdae286cf3ccbab9a103bc1c43281b9b387 Mon Sep 17 00:00:00 2001 From: Integral Date: Mon, 8 Jun 2026 16:52:40 +0800 Subject: [PATCH] Enable LTO and reduce code generation units for release profile --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 39e5989f..cc41a78f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -105,3 +105,7 @@ normalize-path = "0.2.1" pretty_assertions = "1.4.1" rand = "0.10.1" which = "8.0.2" + +[profile.release] +lto = true +codegen-units = 1