github cargo-bins/cargo-binstall v0.9.1

latest releases: v1.3.1, binstalk-v0.16.1, binstalk-registry-v0.1.1...
23 months ago

Binstall is a tool to fetch and install Rust-based executables as binaries. It aims to be a drop-in replacement for cargo install in most cases. Install it today with cargo install cargo-binstall, from the binaries below, or if you already have it, upgrade with cargo binstall cargo-binstall.

In this release:

  • Binaries are now fetched according to the platform, detected at runtime, instead of matching the target triple of Binstall itself. (#155, #160)
  • Binstall may try fetching the best of multiple targets for binaries, depending on platform. (#160, #162)

For example, when using an ARM64 Linux musl build of Binstall on a glibc-based system:

  • Binstall <=0.8 would attempt to download musl binaries, and fail (fallback to source) if none were available
  • Binstall >=0.9 will attempt to download gnu/glibc binaries, then fallback to musl binaries, and then fail (fallback to source).

On Apple M1, M1-native builds will be preferred, with a fallback onto Intel builds (usable via Rosetta); and so on.

Other changes:

  • The --target override option is now an alias to --targets, which takes a comma-separated list of target triples to try fetching in order.
  • The -h and --help outputs have been improved, via an upgrade to Clap 3. -h now shows a terse help page, and --help has longer description and explanations of each option.
  • The code has been updated to Rust 2021, and the minimum version rustc bumped to 1.61. (#154)
  • Several performance improvements were applied (#162, #163, #165)

Many thanks to @NobodyXu who has contributed/collaborated on most of this release and the last!

Don't miss a new cargo-binstall release

NewReleases is sending notifications on new releases.