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

#5 in Cargo plugins

Download history 20494/week @ 2024-08-13 22121/week @ 2024-08-20 22388/week @ 2024-08-27 25763/week @ 2024-09-03 25031/week @ 2024-09-10 26771/week @ 2024-09-17 33498/week @ 2024-09-24 27648/week @ 2024-10-01 30977/week @ 2024-10-08 32148/week @ 2024-10-15 29903/week @ 2024-10-22 32314/week @ 2024-10-29 34048/week @ 2024-11-05 38146/week @ 2024-11-12 37189/week @ 2024-11-19 30422/week @ 2024-11-26

144,817 downloads per month
Used in 117 crates (74 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–1.9MB
~35K SLoC