Automic VaultAutomic Vault

brew

cargo-hack を Homebrew, apk, Nix, pacman でインストール

cargo-hack のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install cargo-hack

local Homebrew formula metadata

Linux

Alpine Linux apk確認済み · 92%
sudo apk add cargo-hack

Alpine Linux edge package indexes · cargo-hack · ソース: dl-cdn.alpinelinux.org

Nix確認済み · 92%
nix profile install nixpkgs#cargo-hack

nixpkgs package indexes · pkgs/by-name/ca/cargo-hack/package.nix · ソース: api.github.com

Arch Linux pacman確認済み · 92%
sudo pacman -S cargo-hack

Arch Linux sync databases · cargo-hack · ソース: geo.mirror.pkgbuild.com

概要

パッケージ概要

Cargo subcommand to provide options for testing and continuous integration

コマンドとエイリアス

  • cargo-hack

履歴

プロジェクトの歴史と使われ方

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.

タイムライン

  • 2019-10-29: GitHub repository created.
  • 2019-10-30: cargo-hack 0.1.0 published to crates.io.
  • 2020s: README documents feature powerset, each-feature, optional dependency, workspace, and Rust-version testing flows.
  • 2026: Crate has more than 1.6 million crates.io downloads and remains active.

Related projects

  • The README lists cargo-llvm-cov, cargo-minimal-versions, and cargo-config2 as related projects by the same maintainer ecosystem.
  • Cargo itself is the underlying command runner and source of many linked feature/workspace issues in the README.
  • cargo-minimal-versions is especially adjacent because both tools help maintainers test package compatibility beyond the default build.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 6 個のプラットフォームターゲットで利用できます。
  • ビルドメタデータには 1 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
cargo-hackcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-25
マネージャ版0.6.45
マネージャ更新日2026-05-30
ローカルデータOK
上流最新
検出された最新v0.6.45

https://github.com/taiki-e/cargo-hack

  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキー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
Pulseupdated
ビルド依存関係rust
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecargo-hack
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Nix95%

cargo-hack

nix profile install nixpkgs#cargo-hack
  • normalized package name match
  • 一致条件: Cargo Hack
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ca/cargo-hack/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

cargo-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-hack
  • License: MIT OR Apache-2.0
  • Architecture: x86_64
  • Source Package: cargo-hack
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Cargo Hack
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cargo-hack from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

cargo-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-doc
  • License: MIT OR Apache-2.0
  • Architecture: x86_64
  • Source Package: cargo-hack
  • normalized package name match
  • 一致条件: Cargo Hack
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cargo-hack-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
pacman95%

cargo-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
  • License: MIT AND Apache-2.0
  • Architecture: x86_64
  • 3 依存関係
  • normalized package name match
  • 一致条件: Cargo Hack
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: cargo-hack from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment