# 使用 Homebrew, Nix, pacman, scoop 安装 cargo-binstall

查看 cargo-binstall 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:cargo-binstall
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cargo-binstall
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cargo-binstall
```

  证据: nixpkgs package indexes: pkgs/by-name/ca/cargo-binstall/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S cargo-binstall
```

  证据: Arch Linux sync databases: cargo-binstall from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/cargo-binstall
```

  证据: Scoop official bucket manifest trees: bucket/cargo-binstall.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:cargo-binstall
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cargo-binstall>
- **版本:** 1.21.1
- **来源摘要:** Binary installation for rust projects
- **主页:** <https://github.com/cargo-bins/cargo-binstall>
- **仓库:** <https://github.com/cargo-bins/cargo-binstall>
- **许可证:** GPL-3.0-only
- **源码归档:** <https://github.com/cargo-bins/cargo-binstall/archive/refs/tags/v1.21.1.tar.gz>
- **最后更新:** 2026-07-25T14:57:32Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cargo-binstall (cli)
- cargo-binstall (别名)

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.21.1
- 管理器更新时间: 2026-07-25
- 本地数据: OK
- 上游仓库: https://github.com/cargo-bins/cargo-binstall
- 检测到的最新版本: v1.21.1 (当前)
## 项目历史与用法

cargo-binstall is a Cargo subcommand for installing Rust command-line tools from prebuilt binaries when possible, falling back to source builds when needed. Its package-history importance is that it tackles the pain of `cargo install` compile times without requiring every Rust tool author to become a full package maintainer.

### 项目历史

The public cargo-binstall repository was created in December 2020. The README describes Binstall as a low-complexity alternative to building from source with `cargo install` or manually downloading release archives.

The project evolved around reuse of existing ecosystem metadata: it fetches crate information from crates.io, checks the linked repository for matching releases and artifacts, can fall back to quickinstall artifacts, supports alternate targets, and uses `cargo install` as a last resort.

### 采用历史

cargo-binstall is packaged through Homebrew, Nix, Arch Linux, and Scoop according to the supplied source facts, and its README documents Homebrew installation plus official shell one-liners and a first-party GitHub Action.

Adoption is also indirect: the README notes that cargo-update can automatically use Binstall if present, and that taiki-e/install-action has dedicated support for selected tools while using Binstall for others.

### 使用方式

Users typically run `cargo binstall <crate>` to install a binary crate from a matching release artifact. For CI, the README recommends `--no-confirm`, and for maintainers it documents optional `[package.metadata.binstall]` configuration in Cargo.toml.

The SUPPORT.md documentation explains how maintainers can specify package URLs, archive formats, binary directories, disabled strategies, target overrides, and cfg expressions so Binstall can find release artifacts reliably.

### 为什么软件包爱好者会关心

cargo-binstall is significant because Rust's source-first install story is elegant but expensive. For command-line tools, users often want the package-manager experience of downloading a binary, while maintainers may already publish GitHub release artifacts.

For package nerds it occupies the space between language registries and system package managers: it reads crates.io metadata and Cargo.toml hints, locates release assets, respects targets and signatures where available, and only compiles when the binary path fails.

### 时间线

- 2020: cargo-binstall repository created on GitHub.
- 2026: GitHub repository metadata shows active maintenance and a large user signal for a Cargo installer tool.
- 2026: README documents release-asset installation, quickinstall fallback, a first-party GitHub Action, signatures, and telemetry controls.

### Related projects

- cargo-binstall is related to cargo install, crates.io, GitHub/GitLab release assets, cargo-quickinstall, and cargo-update.
- The README also names cargo-run-bin for project-scoped tool management, taiki-e/install-action for CI installation, and support metadata in Cargo.toml for maintainers who publish binaries.

### 来源

- <https://api.github.com/repos/cargo-bins/cargo-binstall>
- <https://github.com/cargo-bins/cargo-binstall>
- <https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/README.md>
- <https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/SUPPORT.md>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cargo-binstall
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - cargo-binstall: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-binstall/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - cargo-binstall - 1.21.1-1: normalized package name match | Arch Linux sync databases: cargo-binstall from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Binary installation for Rust projects | https://github.com/cargo-bins/cargo-binstall
- Scoop - main/cargo-binstall: normalized package name match | Scoop official bucket manifest trees: bucket/cargo-binstall.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://pkg.so/zh-hans/package-publishers/) - Belongs to a package publishing or registry command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [cargo-edit](https://pkg.so/zh-hans/brew/cargo-edit/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, package-management, rust.
- [cargo-outdated](https://pkg.so/zh-hans/brew/cargo-outdated/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, package-management, rust.
- [cargo-c](https://pkg.so/zh-hans/brew/cargo-c/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-nextest](https://pkg.so/zh-hans/brew/cargo-nextest/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-update](https://pkg.so/zh-hans/brew/cargo-update/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [eget](https://pkg.so/zh-hans/brew/eget/) - Shares pkgdb curated category or tags: binary-installer, cli, developer-tools, package-management.
- [cargo-llvm-cov](https://pkg.so/zh-hans/brew/cargo-llvm-cov/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-udeps](https://pkg.so/zh-hans/brew/cargo-udeps/) - Shares pkgdb curated category or tags: cargo, cli, developer-tools, rust.
- [cargo-binutils](https://pkg.so/zh-hans/brew/cargo-binutils/) - Both packages touch the same language runtime or ecosystem. Shared terms: binary, cargo, cli, developer, developer-tools.
- [cargo-bloat](https://pkg.so/zh-hans/brew/cargo-bloat/) - Both packages touch the same language runtime or ecosystem. Shared terms: binary, cargo, cli, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/cargo-binstall.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cargo-binstall.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
