Install
Via cargo binstall (downloads the right pre-built binary automatically):
cargo binstall cargo-crap
From source (requires Rust stable ≥ 1.88):
cargo install cargo-crap --locked
Add --features triage to build in duplicate triage.
cargo binstall and the release archives include it.
From the AUR:
paru -S cargo-crap
Pre-built binary (manual download):
# macOS (Apple Silicon)
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/minikin/cargo-crap/releases/latest/download/cargo-crap-aarch64-apple-darwin.tar.gz | tar xz -C ~/.cargo/bin
# macOS (Intel)
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/minikin/cargo-crap/releases/latest/download/cargo-crap-x86_64-apple-darwin.tar.gz | tar xz -C ~/.cargo/bin
# Linux (x86_64)
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/minikin/cargo-crap/releases/latest/download/cargo-crap-x86_64-unknown-linux-gnu.tar.gz | tar xz -C ~/.cargo/bin
# Linux (aarch64)
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/minikin/cargo-crap/releases/latest/download/cargo-crap-aarch64-unknown-linux-gnu.tar.gz | tar xz -C ~/.cargo/bin
Every release also carries SHA256SUMS. To check an archive before
unpacking it, download both and verify, here for Linux x86_64:
base=https://github.com/minikin/cargo-crap/releases/latest/download
curl --proto '=https' --tlsv1.2 -LsSfO "$base/cargo-crap-x86_64-unknown-linux-gnu.tar.gz"
curl --proto '=https' --tlsv1.2 -LsSfO "$base/SHA256SUMS"
sha256sum --check --ignore-missing SHA256SUMS # macOS: shasum -a 256 --check --ignore-missing SHA256SUMS
tar xzf cargo-crap-x86_64-unknown-linux-gnu.tar.gz -C ~/.cargo/bin
Windows: download cargo-crap-x86_64-pc-windows-msvc.zip from the latest release and extract cargo-crap.exe into a directory on your PATH.