LinuxCommandLibrary

cargo-binstall

Install prebuilt Rust binaries from crates.io

TLDR

Install package binary

$ cargo binstall [ripgrep]
copy
Install specific version
$ cargo binstall [tokei@12.1.0]
copy
Only install if signed
$ cargo binstall --only-signed [package]
copy
Install without confirmation
$ cargo binstall -y [package]
copy
Upgrade cargo-binstall itself
$ cargo binstall cargo-binstall
copy
Install from specific target
$ cargo binstall --targets [x86_64-unknown-linux-gnu] [package]
copy

SYNOPSIS

cargo binstall [options] crate[@version]

DESCRIPTION

cargo binstall installs Rust binaries by downloading prebuilt releases instead of compiling from source. It fetches crate info from crates.io, searches for matching releases, and falls back to cargo install if no binary is found.
Much faster than cargo install on constrained devices.

PARAMETERS

-y, --no-confirm

Skip confirmation prompt
--only-signed
Only install signed packages
--targets targets
Override target platform
--install-path path
Custom installation directory
--roots path
Root directory for package info
--force
Force reinstallation
--no-symlinks
Don't create symlinks
--dry-run
Show what would be installed
--log-level level
Set log verbosity

FALLBACK ORDER

1. Linked repository releases
2. quickinstall artifact host
3. Alternate supported targets
4. cargo install (source build)

SIGNATURE VERIFICATION

Maintainers can specify signing keys in Cargo.toml. Binstall downloads and verifies signatures when available.

CAVEATS

Package must have prebuilt binaries or binstall metadata. Falls back to cargo install when no binary found.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community