What problem does it solve?
Rust project layout is often inconsistent across teams, leading to onboarding friction and slow startup times. This Skill provides a canonical blueprint for organizing Rust projects into either a single binary layout or a multi-crate workspace, reducing guesswork and improving maintainability.
Core Features & Use Cases
- Single binary project layout with a clear src/ tree, including modules, config, and routing structure for small services.
- Workspace orchestration for multi-crate Rust projects, separating core domain, infrastructure, and tooling under crates/* with a cargo workspace file.
- Module organization guidelines that standardize folders like src, routes, services, repositories, models, migrations, and tests to improve collaboration and navigation.
- Use cases include building web services, libraries, or CLI tools that scale as teams grow and codebases expand.
Quick Start
Use this rust project-structure reference to scaffold a workspace or a single-binary project with crates and modules following the example layouts.