优化: Zed 编译卡死治理(musl 隔离 + rust-analyzer 配置)

- musl 交叉编译: 文档化 CARGO_TARGET_DIR=target-musl 隔离方案, 删除现有 349M 产物
- gitignore: 新增 target-musl/ 规则
- .zed/settings.json: 新建项目级 rust-analyzer 配置
  - 关闭 check.onSave (Zed 卡死主因: 每次保存触发全 workspace check)
  - check.workspace=false (即便手动也只查当前 crate)
  - cargo.allTargets=false (跳过 musl/交叉 target 解析)
  - files.excludeDirs 排除 target/node_modules 等
  - 保留 procMacro/tauri-codegen enable (否则宏会报红)
This commit is contained in:
2026-07-04 00:53:58 +08:00
parent 0dfaeb0f5b
commit 42efb31bbf
3 changed files with 72 additions and 0 deletions

1
.gitignore vendored
View File

@@ -25,6 +25,7 @@ unpackage/
# Rust / Cargo
target/
target-musl/ # df-relay 交叉编译产物隔离目录(见 .cargo/config.toml)
!Cargo.lock
# Tauri