Quality Gate: Rust¶
Marker: Cargo.toml in the repo root.
Lint¶
Tests¶
Determine scope by checking for workspace:
# Workspace if [workspace] section exists in root Cargo.toml
IS_WORKSPACE=$(grep -c '^\[workspace\]' Cargo.toml 2>/dev/null || echo 0)
- Single-crate (
IS_WORKSPACE= 0):cargo test - Workspace (
IS_WORKSPACE> 0): test only affected crates.