1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 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::*;