cargo-hack

crates.io license rustc build status

A tool to work around some limitations on cargo.

Cargo is a great tool but has some limitations. This tool provides additional flags to avoid some of these limitations.

Installation

sh cargo install cargo-hack

To install cargo-hack requires rustc 1.36+.

cargo-hack is usually runnable with Cargo versions older than the Rust version required for installation (e.g., cargo +1.31.0 hack check). Currently, to run cargo-hack requires Cargo 1.26+.

Usage

See cargo hack --help for a complete list of options (output is here).

cargo-hack is basically wrapper of cargo that propagates subcommand and most of the passed flags to cargo, but provides additional flags and changes the behavior of some existing flags.

The following flags can be used with --each-feature and --feature-powerset.

cargo-hack changes the behavior of the following existing flags.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.