24 releases (14 breaking)

new 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

#3 in Cargo plugins

Download history 27334/week @ 2024-09-27 29846/week @ 2024-10-04 33426/week @ 2024-10-11 29047/week @ 2024-10-18 30858/week @ 2024-10-25 32312/week @ 2024-11-01 38571/week @ 2024-11-08 35471/week @ 2024-11-15 35958/week @ 2024-11-22 42733/week @ 2024-11-29 41723/week @ 2024-12-06 38806/week @ 2024-12-13 27496/week @ 2024-12-20 26633/week @ 2024-12-27 36697/week @ 2025-01-03 40290/week @ 2025-01-10

136,298 downloads per month
Used in 121 crates (77 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–2MB
~36K SLoC