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
.
Features
-
feat: Support
--verbose --version
/-vV
(#627 #1182)
that provides more information:cargo-binstall: 1.0.0 build-date: 2023-07-18 build-target: aarch64-apple-darwin build-features: default,fancy_no_backtrace,git,rustls,static,trust_dns,zstd_thin build-commit-hash: 39d8cfc07f2253080ce997e620406c2994dced25 build-commit-date: 2023-07-18 rustc-version: 1.71.0 rustc-commit-hash: 8ede3aae28fe6e4d52b38157d7bfe0d3bceef225 rustc-llvm-version: 16.0
-
feat: Read
--rate-limit
from envBINSTALL_RATE_LIMIT
as a fallback (#1196 #1201) -
Support
--registry
and more options from.cargo/config.toml
(#885 #1195)
Now we can take advantage of new argument--registry
and
env overrides:CARGO_REGISTRIES_DEFAULT
if--registry
is not specifiedCARGO_REGISTRIES_{registry_name}_INDEX
for the registry index url
We can also read from
.cargo/config.toml
for:- default registry and registries configurations
- additional CA bundle
http.cainfo
Optimization
-
Use
reflink_copy
to speedup binary installation if atomic rename failed -
speedup git shallow cloning: Enable
gix/max-performance
(#1186)
for targets:- x86_64-apple-darwin
- aarch64-apple-darwin
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
which will use
zlib-ng
to speedup decompression and use assembly
version for sha1 checksum calculation on supported CPU.Also enable feature
zlib-ng
on windows and- aarch64-unknown-linux-gnu
- aarch64-unknown-linux-musl
-
Speedup prebuilt binary (#1188)
This commit speeds it up by building all dependencies with
-O3
in dev
and release build, in release build we build everything with-O3
.