diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-07 05:48:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-07 05:48:48 +0000 |
commit | ef24de24a82fe681581cc130f342363c47c0969a (patch) | |
tree | 0d494f7e1a38b95c92426f58fe6eaa877303a86c /vendor/clap-cargo/src/lib.rs | |
parent | Releasing progress-linux version 1.74.1+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-ef24de24a82fe681581cc130f342363c47c0969a.tar.xz rustc-ef24de24a82fe681581cc130f342363c47c0969a.zip |
Merging upstream version 1.75.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/clap-cargo/src/lib.rs')
-rw-r--r-- | vendor/clap-cargo/src/lib.rs | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/vendor/clap-cargo/src/lib.rs b/vendor/clap-cargo/src/lib.rs new file mode 100644 index 000000000..e7acd5774 --- /dev/null +++ b/vendor/clap-cargo/src/lib.rs @@ -0,0 +1,52 @@ +//! **clap-cargo**: Re-usable CLI flags for `cargo` plugins +//! +//! ## Install +//! +//! Add to your `Cargo.toml`: +//! +//! ```toml +//! [dependencies] +//! clap-cargo = "0.1" +//! ``` +//! +//! ## Examples +//! +//! ```rust +//! # #[cfg(feature = "clap")] { +//! // ... +//! #[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: +//! * [escargot][escargot] for wrapping `cargo-build`, `carg-run`, `cargo-test`, etc. +//! * [cargo_metadata][cargo_metadata] for getting crate information. +//! * [clap-verbosity][clap-verbosity] for adding logging to your CLI. +//! +//! [escargot]: https://crates.io/crates/escargot +//! [cargo_metadata]: https://crates.io/crates/cargo_metadata +//! [clap-verbosity]: https://crates.io/crates/clap-verbosity-flag + +#![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![warn(missing_debug_implementations)] +#![warn(unused_extern_crates)] + +mod features; +mod manifest; +mod workspace; + +pub mod style; + +pub use features::*; +pub use manifest::*; +pub use workspace::*; |