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 18235/week @ 2024-06-15 16935/week @ 2024-06-22 16671/week @ 2024-06-29 17343/week @ 2024-07-06 17625/week @ 2024-07-13 19980/week @ 2024-07-20 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 23028/week @ 2024-09-28

112,528 downloads per month
Used in 81 crates (43 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