diff --git a/src/skills/style/rust/rules/bazel.md b/src/skills/style/rust/rules/build.md similarity index 53% rename from src/skills/style/rust/rules/bazel.md rename to src/skills/style/rust/rules/build.md index 8b5a2d3..4ccf566 100644 --- a/src/skills/style/rust/rules/bazel.md +++ b/src/skills/style/rust/rules/build.md @@ -1,4 +1,18 @@ -# Bazel rules +# Build 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. ## Declare Rust tests in Bazel diff --git a/src/skills/style/rust/rules/cargo.md b/src/skills/style/rust/rules/cargo.md deleted file mode 100644 index 06d14e6..0000000 --- a/src/skills/style/rust/rules/cargo.md +++ /dev/null @@ -1,15 +0,0 @@ -# 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.