24 releases (14 breaking)

0.15.2 Jan 14, 2025
0.14.1 Jul 25, 2024
0.14.0 Feb 6, 2024
0.13.0 Oct 2, 2023
0.1.4 May 23, 2019

#2 in Cargo plugins

Download history 27496/week @ 2024-12-20 26633/week @ 2024-12-27 36697/week @ 2025-01-03 48126/week @ 2025-01-10 44660/week @ 2025-01-17 46134/week @ 2025-01-24 46924/week @ 2025-01-31 48440/week @ 2025-02-07 50778/week @ 2025-02-14 58355/week @ 2025-02-21 46352/week @ 2025-02-28 56874/week @ 2025-03-07 61759/week @ 2025-03-14 63718/week @ 2025-03-21 59449/week @ 2025-03-28 70689/week @ 2025-04-04

265,000 downloads per month
Used in 137 crates (89 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.9MB
~35K SLoC