mirror of
https://github.com/clap-rs/clap
synced 2025-01-07 10:18:48 +00:00
Add derive traits only if derive feature is enabled
This commit is contained in:
parent
9b22f19995
commit
5c0947f160
1 changed files with 4 additions and 1 deletions
|
@ -23,11 +23,13 @@ compile_error!("`std` feature is currently required to build `clap`");
|
||||||
|
|
||||||
pub use crate::{
|
pub use crate::{
|
||||||
build::{App, AppSettings, Arg, ArgGroup, ArgSettings, ValueHint},
|
build::{App, AppSettings, Arg, ArgGroup, ArgSettings, ValueHint},
|
||||||
derive::{ArgEnum, Clap, FromArgMatches, IntoApp, Subcommand},
|
|
||||||
parse::errors::{Error, ErrorKind, Result},
|
parse::errors::{Error, ErrorKind, Result},
|
||||||
parse::{ArgMatches, Indices, OsValues, Values},
|
parse::{ArgMatches, Indices, OsValues, Values},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#[cfg(feature = "derive")]
|
||||||
|
pub use crate::derive::{ArgEnum, Clap, FromArgMatches, IntoApp, Subcommand};
|
||||||
|
|
||||||
#[cfg(feature = "yaml")]
|
#[cfg(feature = "yaml")]
|
||||||
#[cfg_attr(feature = "yaml", doc(hidden))]
|
#[cfg_attr(feature = "yaml", doc(hidden))]
|
||||||
pub use yaml_rust::YamlLoader;
|
pub use yaml_rust::YamlLoader;
|
||||||
|
@ -44,6 +46,7 @@ pub use lazy_static;
|
||||||
#[allow(missing_docs)]
|
#[allow(missing_docs)]
|
||||||
mod macros;
|
mod macros;
|
||||||
|
|
||||||
|
#[cfg(feature = "derive")]
|
||||||
mod derive;
|
mod derive;
|
||||||
|
|
||||||
mod build;
|
mod build;
|
||||||
|
|
Loading…
Reference in a new issue