From d8b5ffa2c93dbd5082e931c7b6de1164ebd1c85d Mon Sep 17 00:00:00 2001 From: pjh456 <147148383@qq.com> Date: Sat, 10 Oct 2026 15:47:27 +0000 Subject: [PATCH] =?UTF-8?q?build:=20=E8=A3=81=E5=89=AA=E5=A4=96=E9=83=A8?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E8=B0=83=E8=AF=95=E4=BF=A1=E6=81=AF=E7=BC=A9?= =?UTF-8?q?=E5=B0=8F=E6=B5=8B=E8=AF=95=E4=BA=8C=E8=BF=9B=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index b318e328..b4548cc9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -89,6 +89,11 @@ panic = "abort" # 堆栈回溯仍带行号,日常单测与断点不受影响。 debug = 1 +[profile.dev.package."*"] +# 外部依赖不带调试信息:测试二进制体积的大头是依赖与 std 的调试信息,裁掉后大幅缩短 +# 链接时间与磁盘占用;工作区 crate 自身的行表(上方 debug = 1)保留,便于调试。 +debug = false + # 上游 0.11.1 的 Unicode 表缺 Script/Script_Extensions 的 Unknown(Zzzz,未分配 # 码点集)取值,规范合法模式 \p{Script=Unknown} 无法编译。vendor 补丁在 0.11.1 # 上补齐该取值,其余行为与上游 0.11.1 逐位一致。