From 28f1a405dcccbd4df86e7e00cfe99b7cc6f62aa4 Mon Sep 17 00:00:00 2001 From: Veirt Date: Sat, 3 Aug 2024 02:16:33 +0800 Subject: [PATCH] build: optimize release build settings --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index a2dfcdb..dcc20a2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,3 +15,9 @@ thiserror = "1.0.63" tokio = { version = "1.39.1", features = ["rt-multi-thread"] } toml = { version = "0.8.16", features = ["preserve_order"] } tower-http = { version = "0.5.2", features = ["fs"] } + +[profile.release] +strip = true +opt-level = 2 +lto = true +codegen-units = 1