From 79088dbc80d55cc715ef251b03b6158897d87982 Mon Sep 17 00:00:00 2001 From: Songlin Yang <511121939@qq.com> Date: Wed, 4 Feb 2026 21:34:09 +0800 Subject: [PATCH] fix(1785): enable lto and codegen-units in release build (#6586) Signed-off-by: lsytj0413 <511121939@qq.com> --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index c8d41b49..881cbf01 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -36,3 +36,7 @@ reqwest = { version = "0.12.28", default-features = false, features = ["multipar tower = "0.5.2" tower-http = "0.6.8" url = "2.5.8" + +[profile.release] +codegen-units = 1 +lto = true