Skip Rust checks for non-Rust changes

This commit is contained in:
ldm0
2026-08-19 00:14:42 +08:00
committed by Donough Liu
parent c020b81cec
commit 4637e6df95
+6 -1
View File
@@ -1,7 +1,12 @@
Before committing changes, run all of the following from the repository root and ensure they pass:
Before committing changes that modify Rust source code or Rust build metadata
(such as `Cargo.toml`, `Cargo.lock`, or `rust-toolchain`), run all of the
following from the repository root and ensure they pass:
```sh
cargo fmt --all
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo nextest run --no-fail-fast
```
These commands are not required when the change set contains no Rust source or
Rust build metadata changes.