rust-coding-style
Installation
SKILL.md
Rust Coding Style
Project-Specific Patterns
- Use the 2024 edition of Rust
- Prefer
derive_moreover manual trait implementations - Feature flags in this codebase use the
#[cfg(feature = "...")]pattern - Invoke
cargo clippywith--all-features,--all-targets, and--no-depsfrom the root - Use
cargo doc --no-deps --all-featuresfor checking documentation - Use
rustfmtto format the code - Use
#[expect(lint, reason = "...")]over#[allow(lint)]
Type System
- Create strong types with newtype patterns for domain entities
- Consider visibility carefully (avoid unnecessary
pub)