Local Workflows
Core contributor commands for day-to-day work.
Workspace loop
cargo check --workspace --all-targets --lockedcargo run -p tq-cli --locked -- check --help
Use cargo check as the fast compile, type, trait, and borrow-check loop before running stricter gates.
Quality gates
cargo fmt --all --checkcargo clippy --workspace --all-targets --locked -- -D warningscargo test --workspace --lockedcargo build --workspace --lockedcargo build -p tq-cli --release --lockedcargo package --workspace --lockeduv build
Combined local check
cargo fmt --all --check && cargo clippy --workspace --all-targets --locked -- -D warnings && cargo test --workspace --locked
Security and dependency audit
cargo auditcargo deny checkcargo outdated --workspace --root-deps-only
Secret scanning and commit policy remain part of the standard workflow through gitleaks, detect-secrets, and commitizen.
These checks are only the baseline. Before adding or upgrading external dependencies, follow the broader Security guidance and the dependency review bar in Supply-chain security standards.
Pre-commit hooks
The language-specific pre-commit hooks are Rust-native:
cargo fmt --allonpre-commitcargo clippy --workspace --all-targets --locked -- -D warningsonpre-pushcargo test --workspace --lockedonpre-push