about: |
Rust toolchain and project commands: compile, test, document, and manage
rustup toolchains and components. Passthrough commands forward Cargo’s own
flags (`--release`, `-p`, feature flags, …).
commands:
b:
about: Compile the workspace or package (`cargo build`) — forwarded profile and crate flags.
exec:
argv: ["cargo", "build"]
passthrough: true
c:
about: cargo check — forwarded flags.
exec:
argv: ["cargo", "check"]
passthrough: true
t:
about: cargo test — forwarded flags and filter strings.
exec:
argv: ["cargo", "test"]
passthrough: true
r:
about: cargo run — forwarded args after `--`.
exec:
argv: ["cargo", "run"]
passthrough: true
clippy:
about: cargo clippy — forwarded args.
exec:
argv: ["cargo", "clippy"]
passthrough: true
fmt:
about: cargo fmt — forwarded args.
exec:
argv: ["cargo", "fmt"]
passthrough: true
doc:
about: cargo doc — forwarded args (e.g. `--open`, `--no-deps`).
exec:
argv: ["cargo", "doc"]
passthrough: true
tree:
about: cargo tree — forwarded args.
exec:
argv: ["cargo", "tree"]
passthrough: true
update:
about: rustup update — forwarded toolchains.
exec:
argv: ["rustup", "update"]
passthrough: true
up:
about: Alias of `rust update`.
exec:
argv: ["rustup", "update"]
passthrough: true
toolchain:
about: rustup toolchain — forwarded subcommands.
exec:
argv: ["rustup", "toolchain"]
passthrough: true
component:
about: rustup component — forwarded subcommands.
exec:
argv: ["rustup", "component"]
passthrough: true
watch:
about: cargo watch (requires cargo-watch) — forwarded args.
exec:
argv: ["cargo", "watch"]
passthrough: true
expand:
about: cargo expand (requires cargo-expand) — forwarded args.
exec:
argv: ["cargo", "expand"]
passthrough: true
cargo:
about: Raw cargo — passthrough any subcommand.
exec:
argv: ["cargo"]
passthrough: true