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

#11 in Cargo plugins

Download history 12029/week @ 2024-01-02 14050/week @ 2024-01-09 14945/week @ 2024-01-16 17357/week @ 2024-01-23 14388/week @ 2024-01-30 16559/week @ 2024-02-06 15540/week @ 2024-02-13 14483/week @ 2024-02-20 14666/week @ 2024-02-27 15798/week @ 2024-03-05 15459/week @ 2024-03-12 15321/week @ 2024-03-19 14876/week @ 2024-03-26 16780/week @ 2024-04-02 15856/week @ 2024-04-09 12591/week @ 2024-04-16

62,405 downloads per month
Used in 67 crates (33 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.3–2MB
~39K SLoC