Automic VaultAutomic Vault

brew

cargo-hack mit Homebrew, apk, Nix, pacman installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für cargo-hack in AI-Agent-Workflows.

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install cargo-hack

local Homebrew formula metadata

Linux

Alpine Linux apkverifiziert · 92%
sudo apk add cargo-hack

Alpine Linux edge package indexes · cargo-hack · Quelle: dl-cdn.alpinelinux.org

Nixverifiziert · 92%
nix profile install nixpkgs#cargo-hack

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

Arch Linux pacmanverifiziert · 92%
sudo pacman -S cargo-hack

Arch Linux sync databases · cargo-hack · Quelle: geo.mirror.pkgbuild.com

Überblick

Paketzusammenfassung

Cargo subcommand to provide options for testing and continuous integration

Befehle und Aliase

  • cargo-hack

Verlauf

Projektgeschichte und Nutzung

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.

Projektgeschichte

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.

Adoptionsgeschichte

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.

Wie es verwendet wird

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.

Warum Paket-Nerds sich dafür interessieren

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.

Zeitleiste

  • 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.

Sicherheitslage

Risikostufe: grün

narrow executable package without higher-risk signals.

Risikoklassifikator

grün Risiko · niedrig Konfidenz · appliance

Warum

  • narrow executable package without higher-risk signals

Signale

  • metadata:no-higher-risk-signals

Installationsverhalten

  • In den Formelmetadaten ist kein Homebrew-Post-install-Hook erfasst.
  • Homebrew-Bottle-Metadaten sind für 6 Plattformziele verfügbar.
  • Build-Metadaten listen 1 Build-Abhängigkeiten.

Empfohlene Prüfung

Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.

Executables

Installierte Executables

BefehlArtSichtbarkeitHinweis
cargo-hackcliglobales Executable

Aktualität

Version und Aktualität

Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.

Seite generiert2026-07-25
Manager-Version0.6.45
Manager aktualisiert2026-05-30
lokale DatenOK
Upstreamaktuell
neueste erkannte Versionv0.6.45

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

  • OKEs wurden keine Aktualitätswarnungen generiert.

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:cargo-hack
Version0.6.45
PaketmanagerHomebrew
Paketmanager-Seitehttps://formulae.brew.sh/formula/cargo-hack
Homepagehttps://github.com/taiki-e/cargo-hack
Repositoryhttps://github.com/taiki-e/cargo-hack
Upstream-Dokumentationhttps://github.com/taiki-e/cargo-hack#readme
LizenzApache-2.0 OR MIT
Quellarchivhttps://github.com/taiki-e/cargo-hack/archive/refs/tags/v0.6.45.tar.gz
Zuletzt aktualisiert2026-05-30T17:37:11Z
Pulseupdated
Build-Abhängigkeitenrust
Bottleverfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnicht definiert
Dienstkeiner deklariert

Registry-Fakten

Details aus der Quelldatenbank

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

Source-Datenbank-Treffer

Andere Paketmanager-Einträge

Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.

Nix95%

cargo-hack

nix profile install nixpkgs#cargo-hack
  • normalized package name match
  • Abgeglichen nach: 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 Abhängigkeiten
  • 1 stellt bereit
  • normalized package name match
  • Abgeglichen nach: 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
  • Abgeglichen nach: 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 Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: 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

Quellspur

Aus Repository-Daten generiert

Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.

Verwendete Quellen

  • 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