| name | cargo-commands |
| description | Full cargo command reference for the trusty-tools workspace — release builds, feature-gated tests, ignored/ONNX integration tests, single-test-by-name runs, the trusty-search performance regression suite, dependency audit, and crate-name-vs-directory resolution |
| user-invocable | true |
| version | 1.0.0 |
| category | local-ops |
| tags | ["cargo","build","test","workspace","local-ops"] |
| effort | low |
| when_to_use | When you need a cargo invocation beyond the five everyday one-liners in CLAUDE.md — a release build, a feature-gated test, an ignored/ONNX integration test, a single test by name, the trusty-search baseline suite, cargo update/audit, or running a crate binary |
Cargo Commands — trusty-tools Workspace
🔴 Single-path workflows — use exactly these commands.
The five everyday one-liners (cargo build, cargo check -p <crate>,
cargo test -p <crate>, cargo clippy -p <crate> --all-targets -- -D warnings,
cargo fmt) are resident in the root CLAUDE.md and are not repeated here.
This skill is the exhaustive variant list.
Which gate to run for a given change is not this skill's call — that is the
Rust Test Ladder in CLAUDE.md, with the per-rung command chains in
docs/reference/test-ladder-baseline.md.
This skill tells you how to spell a command, not whether you owe it.
Workspace-wide
cargo build --release
cargo test
cargo clippy --workspace --all-targets -- -D warnings
cargo fmt --check
cargo fmt
cargo test -- --include-ignored
cargo update
cargo audit
Individual Crate
cargo build -p trusty-search
cargo build --release -p trusty-search
cargo build --release -p trusty-mpm
cargo test -p trusty-common --features axum-server
cargo test -p trusty-search -- my_test_name
cargo -p <crate> <> -- --exact --nocapture
cargo -p trusty-embedderd -- --include-ignored
cargo run -p trusty-search -- start
cargo run -p trusty-mpm -- --
cargo -p trusty-search -- baseline_trusty_tools -- --include-ignored --nocapture