docs(zh-CN): sync Chinese docs with latest upstream changes

This commit is contained in:
neo
2026-03-21 12:55:58 +08:00
parent 0af0fbf40b
commit e73c2ffa34
85 changed files with 11028 additions and 747 deletions

View File

@@ -0,0 +1,17 @@
---
paths:
- "**/*.rs"
- "**/Cargo.toml"
---
# Rust 钩子
> 此文件扩展了 [common/hooks.md](../common/hooks.md),包含 Rust 特定内容。
## PostToolUse 钩子
`~/.claude/settings.json` 中配置:
* **cargo fmt**:编辑后自动格式化 `.rs` 文件
* **cargo clippy**:编辑 Rust 文件后运行 lint 检查
* **cargo check**:更改后验证编译(比 `cargo build` 更快)