21 releases (13 breaking)

0.14.1 Jul 25, 2024
0.14.0 Feb 6, 2024
0.13.0 Oct 2, 2023
0.10.0 Sep 28, 2022
0.1.4 May 23, 2019

#4 in Cargo plugins

Download history 19920/week @ 2024-07-27 19708/week @ 2024-08-03 20323/week @ 2024-08-10 20154/week @ 2024-08-17 23424/week @ 2024-08-24 23951/week @ 2024-08-31 25865/week @ 2024-09-07 24967/week @ 2024-09-14 34975/week @ 2024-09-21 26892/week @ 2024-09-28 29696/week @ 2024-10-05 33992/week @ 2024-10-12 29425/week @ 2024-10-19 31058/week @ 2024-10-26 33349/week @ 2024-11-02 32695/week @ 2024-11-09

130,936 downloads per month
Used in 112 crates (69 directly)

MIT/Apache

34KB
566 lines

clap-cargo

Re-usable CLI flags for cargo plugins

codecov Documentation License Crates Status

Examples

// ...
#[derive(Debug, clap::Parser)]
struct Cli {
    #[command(flatten)]
    manifest: clap_cargo::Manifest,
    #[command(flatten)]
    workspace: clap_cargo::Workspace,
    #[command(flatten)]
    features: clap_cargo::Features,
}

Relevant crates

Other crates that might be useful for cargo plugins:

License

Licensed under either of

at your option.

Contribution

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.

Dependencies

~1.1–2MB
~36K SLoC