What problem does it solve?
This Skill unit provides a comprehensive set of rules and guidelines for writing and auditing Rust code with best practices, idioms, and security considerations in mind.
Core Features & Use Cases
- Ownership and API Design: Rules for idiomatic ownership patterns, smart-pointer selection, and API design principles.
- Error Handling and Panic Policy: Guidelines for structured error handling, panic policy, and best practices for library/application separation.
- Unsafe Discipline: Detailed instructions for safe usage of Rust's unsafe features, including UB catalog and CI checks.
- Async Rust and Tokio: Best practices for asynchronous programming with Tokio, including cancellation safety and structured concurrency.
- Security and Supply Chain: Rules for secure dependency management, handling untrusted input, and secret handling.
Quick Start
Use the sota-rust skill to audit the 'main.rs' file for compliance with Rust best practices.