macOS
brew install cargo-hacklocal Homebrew formula metadata
安装
brew install cargo-hacklocal Homebrew formula metadata
sudo apk add cargo-hackAlpine Linux edge package indexes · cargo-hack · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#cargo-hacknixpkgs package indexes · pkgs/by-name/ca/cargo-hack/package.nix · 来源: api.github.com
sudo pacman -S cargo-hackArch Linux sync databases · cargo-hack · 来源: geo.mirror.pkgbuild.com
概览
Cargo subcommand to provide options for testing and continuous integration
历史
cargo-hack is a Cargo subcommand for testing Rust packages across feature combinations, workspace selections, and Rust version ranges. It is built for the practical pain of continuous integration in feature-heavy crates.
Its best-known commands, `--each-feature` and `--feature-powerset`, make Cargo feature-matrix testing explicit and scriptable.
The cargo-hack repository was created in October 2019 and version 0.1.0 was published to crates.io the next day. The README describes it as a Cargo subcommand providing options useful for testing and continuous integration.
The project developed around gaps in Cargo's native feature testing ergonomics. Its README references several upstream Cargo issues and documents behavior around workspaces, features, optional dependencies, package selection, and Rust version checks.
cargo-hack was adopted by Rust crate maintainers who needed confidence that optional features, no-default-features builds, and workspace combinations continued to compile.
Its usage fits CI particularly well because a maintainer can run ordinary Cargo subcommands through cargo-hack while expanding the matrix of features or Rust versions under test.
Common usage wraps a Cargo command, for example checking every individual feature or a feature powerset. The README documents `--each-feature`, `--feature-powerset`, feature exclusions, optional dependency handling, `--rust-version`, and `--version-range`.
The tool also improves or extends behavior around existing Cargo flags such as workspace/package selection and manifest paths, keeping it close to Cargo rather than inventing a separate build system.
cargo-hack is important to package maintainers because Rust features form part of a crate's public compatibility surface. Testing only the default feature set can miss broken optional integrations; cargo-hack makes those combinations cheap to exercise.
It is also a good example of an ecosystem utility that exists because package metadata is combinatorial: the hard part is not installing the package, it is validating all the shapes users can request from it.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cargo-hack | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/taiki-e/cargo-hack
安装元数据
| 软件包键 | brew:cargo-hack |
|---|---|
| 版本 | 0.6.45 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/cargo-hack |
| 主页 | https://github.com/taiki-e/cargo-hack |
| 仓库 | https://github.com/taiki-e/cargo-hack |
| 上游文档 | https://github.com/taiki-e/cargo-hack#readme |
| 许可证 | Apache-2.0 OR MIT |
| 源码归档 | https://github.com/taiki-e/cargo-hack/archive/refs/tags/v0.6.45.tar.gz |
| 最后更新 | 2026-05-30T17:37:11Z |
| Pulse | updated |
| 构建依赖 | rust |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cargo-hack |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
cargo-hack
nix profile install nixpkgs#cargo-hackcargo-hack 0.6.45-r0
Cargo subcommand to provide various options useful for testing and continuous integration.
https://github.com/taiki-e/cargo-hack
sudo apk add cargo-hackcargo-hack-doc 0.6.45-r0
Cargo subcommand to provide various options useful for testing and continuous integration. (documentation)
https://github.com/taiki-e/cargo-hack
sudo apk add cargo-hack-doccargo-hack 0.6.45-1
A cargo subcommand to provide various options useful for testing and CI
https://github.com/taiki-e/cargo-hack
sudo pacman -S cargo-hack来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.