mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +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::{
|
||||
build::{App, AppSettings, Arg, ArgGroup, ArgSettings, ValueHint},
|
||||
derive::{ArgEnum, Clap, FromArgMatches, IntoApp, Subcommand},
|
||||
parse::errors::{Error, ErrorKind, Result},
|
||||
parse::{ArgMatches, Indices, OsValues, Values},
|
||||
};
|
||||
|
||||
#[cfg(feature = "derive")]
|
||||
pub use crate::derive::{ArgEnum, Clap, FromArgMatches, IntoApp, Subcommand};
|
||||
|
||||
#[cfg(feature = "yaml")]
|
||||
#[cfg_attr(feature = "yaml", doc(hidden))]
|
||||
pub use yaml_rust::YamlLoader;
|
||||
|
@ -44,6 +46,7 @@ pub use lazy_static;
|
|||
#[allow(missing_docs)]
|
||||
mod macros;
|
||||
|
||||
#[cfg(feature = "derive")]
|
||||
mod derive;
|
||||
|
||||
mod build;
|
||||
|
|
Loading…
Reference in a new issue