github cargo-bins/cargo-binstall v1.1.0

latest releases: v1.3.1, binstalk-v0.16.1, binstalk-registry-v0.1.1...
14 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.

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 env BINSTALL_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 specified
    • CARGO_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
  • feat: Support --index (#1168 #1184)

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.

Bugfix

  • Fix binstalk_downloader::GhApiClient json deser error (#1193)
    When installing cargo-expand v1.0.59, I got an error message:

    Failed to parse http response body as Json: invalid type: null, expected a string at line
    1 column 90
    
  • Fix GPL-3.0 license identifier (#1189 #1192)

Don't miss a new cargo-binstall release

NewReleases is sending notifications on new releases.