rust-workspace
Installation
SKILL.md
Rust Workspace and Project Topology
Authority: Cargo Book — Workspaces, The Book ch7 and ch14-03, Rust Reference ch7, RFC 1525, matklad — Large Rust Workspaces.
This skill decides how many crates a project should have and how they relate. Its companion rust-module-layout decides what lives inside one crate's src/.
Capability Boundaries
✅ Strengths
- Single-crate vs multi-crate workspace decision (decision tree with five concrete triggers)
- Four workspace layout patterns: flat
crates/, groupedcrates/<category>/, nested sub-workspaces, root package - Virtual manifest vs root package — trade-offs and migration
- Workspace-level shared configuration:
[workspace.package],[workspace.dependencies],[workspace.lints] - Dependency direction DAGs — types → core → sdk → server → binary
- Diagnosing and refactoring the "mixed root package" anti-pattern
- Crate naming, publishing, and version coordination across members