From 42b45126630ad8b7ed1ffd71d54473061fc7e0d1 Mon Sep 17 00:00:00 2001 From: xop-bot Date: Mon, 9 Nov 2026 18:46:30 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=85=B3=E9=97=AD=20dev=20profile=20?= =?UTF-8?q?=E5=A2=9E=E9=87=8F=E7=BC=96=E8=AF=91=20+=20=E8=A1=A5=E9=BD=90?= =?UTF-8?q?=20Cargo.toml=20=E6=9C=AB=E5=B0=BE=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 影响: - 本地 `cargo build` 不再生成 target/debug/incremental 缓存目录,磁盘占用明显下降 - 改完源码必须全量重编(首次约 30s),换来 sccache 命中率提升与构建产物可控 改动: - Cargo.toml 增加 `[profile.dev] incremental = false`,让 workspace member 正常进入 sccache 缓存 - 补齐文件末尾换行,消除 git 的 "\ No newline at end of file" 噪声 Co-Authored-By: Claude Code --- Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a4a4222..d9590b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -100,4 +100,7 @@ test-bypass = [] opt-level = 3 lto = "thin" codegen-units = 1 -strip = true \ No newline at end of file +strip = true + +[profile.dev] +incremental = false