HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

cargo binstall — Install Rust binaries from CI artifacts. Falls back to `cargo install` (from source code) if there a

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandrustfrominstallclicargo binstallbinariesartifacts

Problem

How to use the cargo binstall command: Install Rust binaries from CI artifacts. Falls back to cargo install (from source code) if there are no binaries available. More information: <https://github.com/cargo-bins/cargo-binstall>.

Solution

cargo binstall — Install Rust binaries from CI artifacts. Falls back to cargo install (from source code) if there are no binaries available. More information: <https://github.com/cargo-bins/cargo-binstall>.

Install a package from <https://crates.io>:
cargo binstall {{package}}


Install a specific version of a package (latest by default):
cargo binstall {{package}}@{{version}}


Install a package and disable confirmation prompts:
cargo binstall {{[-y|--no-confirm]}} {{package}}

Code Snippets

Install a package from <https://crates.io>

cargo binstall {{package}}

Install a specific version of a package (latest by default)

cargo binstall {{package}}@{{version}}

Install a package and disable confirmation prompts

cargo binstall {{[-y|--no-confirm]}} {{package}}

Context

tldr-pages: common/cargo binstall

Revisions (0)

No revisions yet.