rust-coding-style

Installation
SKILL.md

Rust Coding Style

Project-Specific Patterns

  • Use the 2024 edition of Rust
  • Prefer derive_more over manual trait implementations
  • Feature flags in this codebase use the #[cfg(feature = "...")] pattern
  • Invoke cargo clippy with --all-features, --all-targets, and --no-deps from the root
  • Use cargo doc --no-deps --all-features for checking documentation
  • Use rustfmt to 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)
Installs
1
Repository
hashintel/hash
GitHub Stars
1.7K
First Seen
Sep 7, 2026
rust-coding-style — hashintel/hash