rust-best-practices
Guide for writing idiomatic Rust code based on Apollo GraphQL's best practices handbook. Use this skill when: (1) writing new Rust code or functions, (2) reviewing or refactoring existing Rust code, (3) deciding between borrowing vs cloning or ownership patterns, (4) implementing error handling with Result types, (5) optimizing Rust code for performance, (6) writing tests or documentation for Rust projects.
- Version
- 1.1.1
- License
- MIT
- Compatibility
- Rust 1.70+, Cargo
Pinned to revision 4e8964e24a5a, so it is the text this page describes rather than whatever the author pushed since.
Pre-approved tools experimental
Experimental field. Support varies between clients, so this list is what the author declared, not what your client will enforce.
- Bash(cargo:*)
- Bash(rustc:*)
- Bash(rustfmt:*)
- Bash(clippy:*)
- Read
- Write
- Edit
- Glob
- Grep
Files
- skills/rust-best-practices/SKILL.md
- skills/rust-best-practices/LICENSE
- skills/rust-best-practices/references/chapter_01.md
- skills/rust-best-practices/references/chapter_02.md
- skills/rust-best-practices/references/chapter_03.md
- skills/rust-best-practices/references/chapter_04.md
- skills/rust-best-practices/references/chapter_05.md
- skills/rust-best-practices/references/chapter_06.md
- skills/rust-best-practices/references/chapter_07.md
- skills/rust-best-practices/references/chapter_08.md
- skills/rust-best-practices/references/chapter_09.md
Every link opens the file at its source, pinned to the revision this page describes.