mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-12 12:43:32 +08:00
docs(zh-CN): sync Chinese docs with latest upstream changes
This commit is contained in:
17
docs/zh-CN/rules/rust/hooks.md
Normal file
17
docs/zh-CN/rules/rust/hooks.md
Normal 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` 更快)
|
||||
Reference in New Issue
Block a user