Linux command
cargo-binstall 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Install package binary
cargo binstall [ripgrep]
Install specific version
cargo binstall [tokei@12.1.0]
Only install if signed
cargo binstall --only-signed [package]
Install without confirmation
cargo binstall -y [package]
Upgrade cargo-binstall itself
cargo binstall cargo-binstall
Install from specific target
cargo binstall --targets [x86_64-unknown-linux-gnu] [package]
说明
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.
参数
- -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
FAQ
What is the cargo-binstall command used for?
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.
How do I run a basic cargo-binstall example?
Run `cargo binstall [ripgrep]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -y, --no-confirm do in cargo-binstall?
Skip confirmation prompt