What problem does it solve?
Writing Rust code that is safe, readable, and maintainable is hard without a consistent set of idioms. This skill provides a structured guide based on Apollo GraphQL's Rust Best Practices Handbook to help developers adopt proven patterns and reduce common Rust pitfalls.
Core Features & Use Cases
- Ownership & borrowing guidance: minimize unnecessary clones, prefer references, and apply the Type State pattern where appropriate.
- Error handling discipline: use Result, minimize panics in library code, and leverage thiserror/anyhow appropriately.
- Quality tooling & maintenance: linting with Clippy, tests and documentation best practices, and idiomatic generics and dispatch.
- Use Case: a Rust library that needs safe error propagation and clear public API surfaces, with strong docs and tests.
Quick Start
Review your codebase and start refactoring for idiomatic ownership, robust error handling, and clear documentation.