Automic VaultAutomic Vault

brew

Installer cargo-hack avec Homebrew, apk, Nix, pacman

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de cargo-hack pour les workflows d'agents IA.

installation

Commandes d'installation supplémentaires

macOS

Homebrewvérifié · 100%
brew install cargo-hack

local Homebrew formula metadata

Linux

Alpine Linux apkvérifié · 92%
sudo apk add cargo-hack

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

Nixvérifié · 92%
nix profile install nixpkgs#cargo-hack

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

Arch Linux pacmanvérifié · 92%
sudo pacman -S cargo-hack

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

aperçu

Résumé du paquet

Cargo subcommand to provide options for testing and continuous integration

Commandes et alias

  • cargo-hack

historique

Historique du projet et usages

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.

Historique du projet

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.

Historique d'adoption

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.

Modes d'utilisation

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.

Pourquoi les passionnés de paquets s'y intéressent

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.

Chronologie

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

posture de sécurité

Niveau de risque : vert

narrow executable package without higher-risk signals.

Classificateur de risque

risque vert · confiance faible · appliance

Pourquoi

  • narrow executable package without higher-risk signals

Signaux

  • metadata:no-higher-risk-signals

Comportement d'installation

  • Aucun hook post-install Homebrew n’est enregistré dans les métadonnées de formule.
  • Les métadonnées de bottle Homebrew sont disponibles pour 6 plateformes.
  • Les métadonnées de compilation listent 1 dépendances de compilation.

Revue recommandée

Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.

exécutables

Exécutables installés

CommandeTypeExpositionNote
cargo-hackcliexécutable global

fraîcheur

Version et fraîcheur

Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.

page générée2026-07-25
version du gestionnaire0.6.45
gestionnaire mis à jour2026-05-30
données localesOK
amontà jour
dernière version détectéev0.6.45

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

  • OKAucun avertissement de fraîcheur n'a été généré.

métadonnées d'installation

Métadonnées du paquet

Clé du paquetbrew:cargo-hack
Version0.6.45
Gestionnaire de paquetsHomebrew
Page du gestionnaire de paquetshttps://formulae.brew.sh/formula/cargo-hack
Page d'accueilhttps://github.com/taiki-e/cargo-hack
Dépôthttps://github.com/taiki-e/cargo-hack
Docs amonthttps://github.com/taiki-e/cargo-hack#readme
LicenceApache-2.0 OR MIT
Archive sourcehttps://github.com/taiki-e/cargo-hack/archive/refs/tags/v0.6.45.tar.gz
Dernière mise à jour2026-05-30T17:37:11Z
Pulseupdated
Dépendances de compilationrust
Bouteilledisponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
post-install Homebrewnon défini
Serviceaucun déclaré

faits du registre

Détails de la base source

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

correspondances dans les bases sources

Autres enregistrements de gestionnaires de paquets

Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.

Nix95%

cargo-hack

nix profile install nixpkgs#cargo-hack
  • normalized package name match
  • Correspondance par : 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 Dépendances
  • 1 fournit
  • normalized package name match
  • Correspondance par : 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
  • Correspondance par : 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 Dépendances
  • normalized package name match
  • Correspondance par : 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

piste source

Généré depuis les données du dépôt

Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.

Sources utilisées

  • 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