From d3c154952226031e89b48e2021633ff997632a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=BF=90=E5=AE=B6?= Date: Fri, 14 Mar 2025 21:21:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BC=96=E8=AF=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.toml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index d900ff1..911e29a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,6 +6,25 @@ edition = "2021" [workspace] members = [".", "server", "domain", "i18n","library", "macro"] +# https://doc.rust-lang.org/cargo/reference/profiles.html +[prifile.release] +lto = true +codegen-units = 1 +opt-level = "z" + +[profile.dev] +opt-level = 0 +debug = true +split-debuginfo = '...' # Platform-specific. +strip = "none" +debug-assertions = true +overflow-checks = true +lto = false +panic = 'unwind' +incremental = true +codegen-units = 256 +rpath = false + # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies]