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

#6 in Cargo plugins

Download history 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 31418/week @ 2024-10-24 31521/week @ 2024-10-31 38194/week @ 2024-11-07 35693/week @ 2024-11-14 36836/week @ 2024-11-21 40471/week @ 2024-11-28 34705/week @ 2024-12-05

154,996 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