What problem does it solve?
This Skill eliminates the complexity and manual errors associated with managing Rust Cargo.toml dependencies in a monorepo workspace. It ensures consistent, efficient, and bloat-free dependency configurations across your projects, saving you time and reducing build issues.
Core Features & Use Cases
- Centralized Dependency Management: Guides you to define external crates in the workspace root
[workspace.dependencies], enforcing caret versioning and default-features = false for optimal builds.
- Structured
Cargo.toml: Enforces a clear 4-section pattern (Public workspace, Public third-party, Private workspace, Private third-party) within package-level Cargo.toml files for enhanced readability and maintainability.
- Granular Feature Control: Directs you to enable specific features at the package level, leading to smaller binaries and faster compile times by avoiding unnecessary default features.
- Use Case: When adding a new external crate like
tokio, this skill guides you to add it to the workspace root, disable default features, and then add it to the correct section in your package's Cargo.toml with only the necessary features enabled, ensuring consistency and efficiency.
Quick Start
Use the managing-cargo-dependencies skill to add 'my-new-crate' version '1.2.3' as a private third-party dependency to the 'hash-api' package.