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:
- Release binaries are about 40% smaller (18.9 MB → 11.4 MB on x86_64 Linux) (#2792 #2797 #2777)
- Automatically try
arm64/amd64whenpkg-urluses{ target-arch }, with no extra metadata needed (#2126 #2782) - Support single binaries compressed without a tar:
pkg-fmt = "gz","bz2","xz"and"zst"(#2119 #2785) bin-dircan now name the directory holding the binaries, which are then looked up inside it as{ bin }{ binary-ext }(#380 #2783)- Guess
{ name }-v{ version }and{ name }-{ version }GitHub release tags, as made by release-plz, cargo-release and release-please in workspaces, thank you @kixelated (#2749 #2752) - Symlink aliases for installed binaries, via
[package.metadata.binstall.binary.NAME] aliases = ["..."]or--aliases BIN:ALIAS, thank you @ChrisJr404 (#2643 #2767) - Add opt-in
--min-publish-age(envBINSTALL_MIN_PUBLISH_AGE, e.g.7 days) to skip versions published too recently (#2757) - Remember where the last install found the package, so updates usually need one or two requests instead of probing every guess (#853 #2800)
- Keep
.crates2.jsonin sync with.crates.toml, so tools that read it, such as cargo-update, see binstall's installs (#1552 #2786) - Detect Linux targets by running tiny probe executables instead of matching version strings. This fixes glibc detection on Gentoo and also detects hard-float ARM, multilib (e.g. i686 on x86_64) and qemu-binfmt targets, thank you @passcod (#1999 #2582 #2772)
- Resume downloads that drop partway with a
Rangerequest instead of failing, thank you @passcod (#2641) - Add
--no-default-featuresand--all-featuresfor thecargo installfallback, thank you @zchee (#2458 #2576 #2768) - Warn when an installed binary is shadowed by another one earlier in
PATH(#2054 #2771) - Warn when
--gitor--manifest-pathignores the requested version requirement (#2358 #2770)
Fixed
- Reject bins that are symlinks, or sit under symlinked dirs, pointing outside the extracted package (#2745)
- Check that a quickinstall signature was made for this crate, version and target, not just that it is valid (#2773)
- Don't wait for GitHub API rate limits to reset; public repos fall back to plain HTTP checks instead. Together with the next fix, this stops cargo-update from looking hung (#2798)
- Only hold the install manifest lock while installing, so parallel binstalls (as cargo-update runs them) no longer wait on each other's resolution; a message is printed while waiting for the lock (#2799)
- Retry HTTP 500 and 502 responses like other transient errors (#2796)
- Windows: when a symlink can't be created, copy the binary instead of moving it, so the versioned binary is kept (#2746)
- Cancelling binstall (e.g. Ctrl-C) now kills the whole
cargo installprocess tree, including rustc and build scripts (#2765) - Fix building on illumos (#2758)
- Unix install script only prints each command when
CIorBINSTALL_DEBUGis set, thank you @maia-yeager (#2594 #2766) - Windows install one-liner passes
-UseBasicParsingtoiwr(#2399 #2769)