rust-developer
Expert Rust development guide based on real-world code reviews. Ideal for idiomatic code, performance tuning, error handling, and avoiding common pitfalls in CLI and production tools.
Introduction
The Rust Developer skill provides a comprehensive suite of best practices and architectural patterns derived from six months of intensive code reviews in a production-grade environment. It is designed to assist software engineers in navigating the complexities of the Rust ecosystem, from memory safety and borrow checker nuances to advanced performance optimization. Whether you are a newcomer learning the basics or an experienced engineer debugging intricate concurrency issues, this skill offers actionable guidance to ensure your codebase is idiomatic, maintainable, and efficient.
-
Provides deep-dive resources on core Rust topics including Error Handling (Result, Option, anyhow, thiserror), File I/O Safety (atomic operations, TOCTOU avoidance), and Type Safety (newtype pattern, validation boundaries).
-
Offers a scannable 20-rule quick reference checklist perfect for rapid code reviews or troubleshooting common production footguns.
-
Includes specific guidance on designing CLI tools, managing shared state with Arc and Mutex, preventing SQL injection, and optimizing hot paths through zero-copy abstractions like Cow and AsRef.
-
Facilitates learning paths for different skill levels, ranging from beginner fundamentals to advanced profiling and benchmarking techniques using tools like criterion.
-
Use this skill when writing or modifying .rs files to ensure adherence to established project patterns and safety conventions.
-
Ideal for resolving compiler warnings, interpreting borrow checker failures, or architecting robust error propagation strategies in large-scale applications.
-
Recommended for reviewing pull requests to ensure consistency in tracing, logging, and performance-critical code paths.
-
The content covers both foundational syntax and high-level architectural patterns for production Rust, ensuring developers can confidently build tools, hooks, and backend services that satisfy the strict requirements of the Rust compiler while remaining performant and user-friendly.
Repository Stats
- Stars
- 0
- Forks
- 0
- Open Issues
- 5
- Language
- JavaScript
- Default Branch
- main
- Sync Status
- Idle
- Last Synced
- May 4, 2026, 01:52 AM