Crates.io | clap-cargo |
lib.rs | clap-cargo |
version | |
source | src |
created_at | 2019-04-08 23:48:24.278326+00 |
updated_at | 2025-01-14 16:36:12.301061+00 |
description | Re-usable CLI flags for `cargo` plugins |
homepage | |
repository | https://github.com/crate-ci/clap-cargo |
max_upload_size | |
id | 126675 |
Cargo.toml error: | TOML parse error at line 28, column 1 | 28 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Re-usable CLI flags for
cargo
plugins
// ...
#[derive(Debug, clap::Parser)]
struct Cli {
#[command(flatten)]
manifest: clap_cargo::Manifest,
#[command(flatten)]
workspace: clap_cargo::Workspace,
#[command(flatten)]
features: clap_cargo::Features,
}
Other crates that might be useful for cargo plugins:
cargo-build
, carg-run
, cargo-test
, etc.Licensed under either of
at your option.
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.