feat(skills): require workspace Rust dependency versions

This commit is contained in:
2026-09-17 09:28:59 -04:00
parent 388739ec43
commit 0a2fc40f8b

View File

@@ -0,0 +1,15 @@
# Cargo rules
## Use workspace dependency versions
### Rule
Declare Rust dependency versions in the repository root `Cargo.toml` under `[workspace.dependencies]`.
Reference workspace dependencies from package `Cargo.toml` files with `workspace = true`.
Do not declare dependency versions in package `Cargo.toml` files unless the operator explicitly requests a package-local version.
Add package-local dependency features only when the feature set is specific to that package.
### Rationale
The repository has one Cargo workspace and one `Cargo.lock`.
Centralized dependency versions keep package manifests consistent with the workspace lockfile.