clap-cargo

Crates.ioclap-cargo
lib.rsclap-cargo
version0.14.0
sourcesrc
created_at2019-04-08 23:48:24.278326
updated_at2024-02-06 14:35:59.809285
descriptionRe-usable CLI flags for `cargo` plugins
homepage
repositoryhttps://github.com/crate-ci/clap-cargo
max_upload_size
id126675
size46,677
Maintainers (github:rust-cli:maintainers)

documentation

https://docs.rs/clap-cargo

README

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.

Commit count: 214

cargo fmt