| name | cargo-workflow |
| description | Standard cargo workflow for build/test/lint cycles. |
Cargo Workflow
Use this skill when working on Rust code that compiles via cargo.
Standard cycle
cargo check
cargo test
cargo clippy
cargo fmt
Common patterns
- For long-running test suites, prefer
cargo nextest run if cargo-nextest is installed.
- Use
cargo check --message-format=json when you need structured diagnostics.
- For workspace members, scope with
-p <crate> to avoid recompiling the world.
When tests fail
- Re-run with
--nocapture to see prints.
- Run a single test:
cargo test -p <crate> <test_name> -- --exact --nocapture.
- For flakes, run with
--test-threads=1 to rule out concurrency.