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 16191/week @ 2024-01-24 14332/week @ 2024-01-31 16657/week @ 2024-02-07 15393/week @ 2024-02-14 14876/week @ 2024-02-21 14999/week @ 2024-02-28 15195/week @ 2024-03-06 15451/week @ 2024-03-13 15508/week @ 2024-03-20 15063/week @ 2024-03-27 16511/week @ 2024-04-03 15752/week @ 2024-04-10 15133/week @ 2024-04-17 17215/week @ 2024-04-24 17878/week @ 2024-05-01 14780/week @ 2024-05-08

67,353 downloads per month
Used in 68 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.3–2MB
~38K SLoC