Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
clap_cargo - Rust
[go: Go Back, main page]

Crate clap_cargo[][src]

Expand description

clap-cargo: Re-usable CLI flags for cargo plugins

Install

Add to your Cargo.toml:

[dependencies]
clap-cargo = "0.1"

Examples

// ...
#[derive(Debug, structopt::StructOpt)]
struct Cli {
    #[structopt(flatten)]
    manifest: clap_cargo::Manifest,
    #[structopt(flatten)]
    workspace: clap_cargo::Workspace,
    #[structopt(flatten)]
    features: clap_cargo::Features,
}

Relevant crates

Other crates that might be useful for cargo plugins:

Structs