From 0397170a99ad199841671072e9360d4c92f8ab92 Mon Sep 17 00:00:00 2001 From: Gaius Date: Fri, 27 Sep 2024 12:09:52 +0800 Subject: [PATCH] feat: optimize the profile release for binary (#752) Signed-off-by: Gaius --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b1a3ade9..5aed245f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -89,7 +89,11 @@ percent-encoding = "2.3.1" tempfile = "3.12.0" [profile.release] -debug = true +opt-level = "z" +lto = true +codegen-units = 1 +panic = "abort" +strip = "symbols" [profile.bench] debug = true