#cargo-subcommand #cargo

app cargo-features

Power tools for working with (conditional) features

2 releases (1 stable)

Uses new Rust 2024

1.0.0 Jan 22, 2026
0.0.0 Mar 8, 2021

#121 in Cargo plugins

MIT/Apache

14KB
299 lines

cargo-features

Power tools for working with Cargo features

Usage: cargo features <COMMAND>

Commands:
  discover  Discover which crates enabled specific conditional compilation features
  powerset  Run a cargo command for every combination in the feature powerset
  help      Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

cargo features discover

Discover which crates enabled specific conditional compilation features

Usage: cargo features discover [OPTIONS]

Options:
  -a, --all                            Show all available features even if not currently enabled
  -m, --manifest-path <MANIFEST_PATH>  Path to Cargo.toml (defaults to current directory)
  -h, --help                           Print help
  -V, --version                        Print version

cargo features powerset

Run a cargo command for every combination in the feature powerset

Usage: cargo features powerset [OPTIONS] <CARGO_COMMAND>...

Arguments:
  <CARGO_COMMAND>...  Cargo command to run (e.g., "build", "test", "check")

Options:
      --skip-empty                     Skip the empty feature set (no features enabled)
  -f, --features <FEATURES>            Specific features to include in powerset (default: all)
      --manifest-path <MANIFEST_PATH>  Path to Cargo.toml
  -h, --help                           Print help
  -V, --version                        Print version

Dependencies

~1.8–4.5MB
~86K SLoC