What problem does it solve?
Ensures Rust code and crate APIs are safe, idiomatic, and maintainable by providing concrete guidance on ownership, borrowing, trait design, error handling, generics, and project structure so that invalid states are prevented at compile time.
Core Features & Use Cases
- Provides idiomatic patterns for ownership and borrowing, lifetime annotations, and smart pointer selection.
- Recommends trait and generic design, static vs dynamic dispatch, and object safety considerations.
- Defines error-handling strategies for libraries and applications with structured errors and propagation best practices.
- Prescribes formatting, linting, and CI checks including rustfmt and clippy to enforce code quality.
- Use cases: code reviews, API/crate design decisions, onboarding contributors, and preparing crates for publication.
Quick Start
Run a review of the provided Rust code and produce safety-first, idiomatic recommendations focused on ownership, lifetimes, trait design, error handling, and formatting.