rust-best-practices
Guidelines and best practices for writing high-quality, performant, and idiomatic Rust code.
Install
npx skills add https://github.com/apollographql/skills --skill rust-best-practicesStats
| Total installs | 4,884 |
| Weekly installs | 4.9K |
| GitHub stars | 41 |
| First seen | Jan 26, 2026 |
| Source | @apollographql/skills |
Summary
- Covers nine core areas: coding styles and idioms, clippy linting, performance optimization, error handling, testing patterns, generics and dispatch, type state pattern, documentation, and pointer safety
- Emphasizes borrowing over cloning, Result-based error handling with thiserror/anyhow, and performance profiling with release builds
- Includes quick reference guidance on ownership patterns, panic avoidance, clippy configuration, test naming conventions, and compile-time state safety via type state pattern
- Provides specific lints to enforce (redundant_clone, large_enum_variant, needless_collect) and recommends #[expect(...)] over #[allow(...)] with justification comments
Tags
Related skills
| Skill | Installs | vs rust-best-practices |
|---|---|---|
| debugging-strategies | 4,689 | -195 |
| clean-code | 4,151 | -733 |
| baseline-ui | 5,980 | +1,096 |
| swift-concurrency | 6,474 | +1,590 |
| improve-codebase-architecture | 5,172 | +288 |
FAQ
- How many installs does rust-best-practices have?
- rust-best-practices has 4,884 total installs and 4.9K installs this week.
- Where is rust-best-practices hosted?
- rust-best-practices is published by @apollographql/skills at https://github.com/apollographql/skills.
- How many GitHub stars does rust-best-practices have?
- rust-best-practices has 41 GitHub stars.
- When was rust-best-practices first indexed?
- OrangeBot.AI first indexed rust-best-practices on Jan 26, 2026.
- How do I install rust-best-practices?
- Run: npx skills add https://github.com/apollographql/skills --skill rust-best-practices