20 releases (13 breaking)

0.14.0 Feb 6, 2024
0.13.0 Oct 2, 2023
0.12.0 Sep 11, 2023
0.10.0 Sep 28, 2022
0.1.4 May 23, 2019

#12 in Cargo plugins

Download history 15291/week @ 2024-01-27 15357/week @ 2024-02-03 15852/week @ 2024-02-10 15235/week @ 2024-02-17 14609/week @ 2024-02-24 15449/week @ 2024-03-02 15080/week @ 2024-03-09 15654/week @ 2024-03-16 14875/week @ 2024-03-23 16388/week @ 2024-03-30 15432/week @ 2024-04-06 15671/week @ 2024-04-13 17299/week @ 2024-04-20 17325/week @ 2024-04-27 17315/week @ 2024-05-04 14499/week @ 2024-05-11

68,713 downloads per month
Used in 70 crates (34 directly)

MIT/Apache

29KB
560 lines

clap-cargo

Re-usable CLI flags for cargo plugins

codecov Documentation License Crates Status

Install

Add to your Cargo.toml:

[dependencies]
clap-cargo = "0.14.0"

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.2–2MB
~38K SLoC