# 使用 Homebrew, Nix, pacman 安装 cargo-all-features

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

## 安装

```sh
sudo av install brew:cargo-all-features
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cargo-all-features
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cargo-all-features
```

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

- pacman (92%):

```sh
sudo pacman -S cargo-all-features
```

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

## 软件包事实

- **软件包键:** brew:cargo-all-features
- **软件包管理器:** Homebrew
- **版本:** 1.12.0
- **来源摘要:** Cargo subcommands to build and test all feature flag combinations
- **主页:** <https://github.com/frewsxcv/cargo-all-features>
- **仓库:** <https://github.com/frewsxcv/cargo-all-features>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cargo-all-features (别名)
- cargo-build-all-features (别名)
- cargo-check-all-features (别名)
- cargo-test-all-features (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.12.0
## 项目历史与用法

cargo-all-features is a small Cargo subcommand suite for building, checking, and testing Rust crates across combinations of feature flags. It addresses a Rust-specific packaging problem: feature combinations can compile differently, and CI matrices often miss bad interactions.

### 项目历史

The public repository was created in May 2020. Its README frames the tool around Cargo package and workspace commands that run subcommands across all feature flag combinations.

The project stayed intentionally narrow: it provides `cargo all-features` plus build, check, and test variants, with configuration kept in Cargo.toml under package metadata.

### 采用历史

Adoption is niche but practical among Rust crate maintainers who use optional dependencies and feature-gated APIs. The supplied package-manager facts list Homebrew, Nix, and Arch Linux packages, showing that the tool became available beyond `cargo install`.

The README's rationale is CI maintenance: manually updating per-feature jobs is easy to forget, and testing only individual flags is not exhaustive.

### 使用方式

Users run commands such as `cargo all-features build`, `cargo all-features check`, or `cargo all-features test` at a package or workspace root. The tool then exercises feature flag combinations for the requested Cargo subcommand.

Configuration lives in Cargo.toml under `[package.metadata.cargo-all-features]`, where users can skip incompatible feature sets, include or deny selected features, cap combination size, and split work into chunks for CI.

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

cargo-all-features is package-nerd useful because Rust feature flags are part of package identity. A crate version is not just one build; it may expose many combinations that downstream packages rely on.

Its value is not broad fame but sharp ergonomics: it turns a maintenance-prone CI matrix into a Cargo-native check that package authors can run locally or in automation.

### 时间线

- 2020: cargo-all-features repository created on GitHub.
- 2020: Git tags include an early 0.1.0 tag and later 1.x releases.
- 2026: Repository metadata shows the project still available with Rust, Cargo, testing, and feature-flag topics.

### Related projects

- cargo-all-features is related to Cargo feature flags, Cargo workspaces, and Rust CI systems that need to test optional dependency combinations.
- It is conceptually adjacent to cargo-hack, another Rust ecosystem tool often used for feature-combination checking, though this batch's official sources only document cargo-all-features itself.

### 来源

- <https://api.github.com/repos/frewsxcv/cargo-all-features>
- <https://api.github.com/repos/frewsxcv/cargo-all-features/tags>
- <https://github.com/frewsxcv/cargo-all-features>
- <https://raw.githubusercontent.com/frewsxcv/cargo-all-features/master/README.md>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: Cargo.toml
## 其他软件包管理器记录

- Nix - cargo-all-features: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-all-features/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - cargo-all-features - 1.12.0-3: normalized package name match | Arch Linux sync databases: cargo-all-features from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A Cargo subcommand to build and test all feature flag combinations | https://github.com/frewsxcv/cargo-all-features


## 相关链接

- [cargo-all-features](https://pkg.so/zh-hans/pkg/cargo/cargo-all-features/) - Same normalized package name exists in another local package ecosystem.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
