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 18151/week @ 2024-07-18 21624/week @ 2024-07-25 19183/week @ 2024-08-01 20401/week @ 2024-08-08 19508/week @ 2024-08-15 23558/week @ 2024-08-22 21866/week @ 2024-08-29 27151/week @ 2024-09-05 25454/week @ 2024-09-12 27664/week @ 2024-09-19 33333/week @ 2024-09-26 28818/week @ 2024-10-03 33341/week @ 2024-10-10 29015/week @ 2024-10-17 31457/week @ 2024-10-24 31483/week @ 2024-10-31

131,856 downloads per month
Used in 108 crates (68 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