macOS
brew install cargo-hacklocal Homebrew formula metadata
brew
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
brew install cargo-hacklocal Homebrew formula metadata
sudo apk add cargo-hackAlpine Linux edge package indexes · cargo-hack · Source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#cargo-hacknixpkgs package indexes · pkgs/by-name/ca/cargo-hack/package.nix · Source: api.github.com
sudo pacman -S cargo-hackArch Linux sync databases · cargo-hack · Source: geo.mirror.pkgbuild.com
aperçu
Cargo subcommand to provide options for testing and continuous integration
historique
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.
posture de sécurité
narrow executable package without higher-risk signals.
risque vert · confiance faible · appliance
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
| Commande | Type | Exposition | Note |
|---|---|---|---|
cargo-hack | cli | exécutable global |
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.
https://github.com/taiki-e/cargo-hack
métadonnées d'installation
| Clé du paquet | brew:cargo-hack |
|---|---|
| Version | 0.6.45 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/cargo-hack |
| Page d'accueil | https://github.com/taiki-e/cargo-hack |
| Dépôt | https://github.com/taiki-e/cargo-hack |
| Docs amont | https://github.com/taiki-e/cargo-hack#readme |
| Licence | Apache-2.0 OR MIT |
| Archive source | https://github.com/taiki-e/cargo-hack/archive/refs/tags/v0.6.45.tar.gz |
| Dernière mise à jour | 2026-05-30T17:37:11Z |
| Pulse | updated |
| Dépendances de compilation | rust |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
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-hackpiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.