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 14223/week @ 2024-02-02 16431/week @ 2024-02-09 15397/week @ 2024-02-16 14496/week @ 2024-02-23 15540/week @ 2024-03-01 14810/week @ 2024-03-08 15681/week @ 2024-03-15 15177/week @ 2024-03-22 15907/week @ 2024-03-29 15918/week @ 2024-04-05 15542/week @ 2024-04-12 16937/week @ 2024-04-19 16667/week @ 2024-04-26 18095/week @ 2024-05-03 16952/week @ 2024-05-10 15910/week @ 2024-05-17

71,542 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