Skip to the content

cargo q

Run Cargo only once.

the terminal

~/cargo-q$?0

flags

-k
keep going
--keep-going
cargo q -k test build
2 command(s), sequentially:
  cargo test
  cargo build
-p
all at once
--parallel
cargo q -p check clippy doc
3 command(s), in parallel:
  cargo check
  cargo clippy
  cargo doc
-n
look first
--dry-run
cargo q -n build --features=foo
1 command(s), sequentially:
  cargo build --features=foo
-v
watch cargo
--verbose
cargo q -v check run
2 command(s), sequentially:
  cargo check
  cargo run
--repeat
N rounds
--repeat <N>
cargo q --repeat 3 check
1 command(s) x 3 rounds, sequentially:
  cargo check
--no-fancy
plain lines
for agents & CI
cargo q --no-fancy fmt check test
3 command(s), sequentially:
  cargo fmt
  cargo check
  cargo test

echo $?

install

cargo install cargo-q --locked

Rust ≥ 1.75 · Linux · macOS · Windows