What problem does it solve?
This Skill establishes and enforces consistent Rust development practices within the Forge ecosystem, ensuring code quality, maintainability, and interoperability across different modules.
Core Features & Use Cases
- Standardized Crate Structure: Provides a clear, opinionated layout for Rust projects.
- Configuration Management: Details patterns for loading configuration from
config.yaml, defaults.yaml, and default implementations.
- Error Handling: Outlines best practices for library and binary error management using
Result, thiserror, and anyhow.
- CLI Patterns: Guides on creating simple CLI tools and integrating with
clap for complex arguments.
- Cross-Platform Compatibility: Emphasizes path handling, file system operations, and build target considerations for macOS, Linux, and Windows.
- Use Case: When starting a new Rust module for the Forge ecosystem, use this Skill to set up the project structure, define the configuration loading mechanism, and implement robust error handling from the outset.
Quick Start
Use the RustDevelopment skill to set up a new Rust module following Forge conventions.