rust
Installation
SKILL.md
Rust Development
Commands
cargo build- Build (debug only)cargo test- Run testscargo fmt- Format code (run after changes)cargo clippy- Lint (run after changes)
Dependencies
- MUST use
cargo add <crate>to add dependencies - never manually edit Cargo.toml for dependencies - ALWAYS ask the user for approval before adding any new dependency
- Only suggest well-known, widely-used crates with good maintenance records
- Prefer crates from the Rust ecosystem's trusted maintainers (e.g., tokio-rs, serde-rs, rust-lang)
- Check crate download counts and recent activity as indicators of reliability
- ALWAYS run
cargo auditafter adding a new dependency - ALWAYS report any vulnerabilities or issues from
cargo auditto the user - never silently ignore audit results