What problem does it solve?
This Skill ensures that Rust code written for the yttrium project adheres to high standards of quality, maintainability, and cross-platform compatibility, reducing bugs and improving developer productivity.
Core Features & Use Cases
- Idiomatic Rust: Enforces project-specific coding styles, including import grouping, error handling with
thiserror, and newtype patterns.
- Cross-Platform Support: Guides the creation of code that works seamlessly across iOS, Android, and WebAssembly.
- Robust Error Handling: Promotes the use of
eyre::Result and thiserror for clear and consistent error management.
- Use Case: When adding a new feature to the core Rust library that needs to be accessible from Swift and JavaScript, this Skill will ensure the code is well-structured, properly tested, and correctly handles platform-specific compilation.
Quick Start
Use the rust-quality skill to add a new thread-safe caching module with a provider pool.