diff --git a/src/lib.rs b/src/lib.rs index 64d346daa48..6bfe55c68ba 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -88,7 +88,9 @@ pub use clap_builder::*; #[cfg(feature = "derive")] #[doc(hidden)] -pub use clap_derive::{self, *}; +// We list the items explicitly instead of using a glob import. +// This allows rustc to pick them up and hint users about using the derive feature. +pub use clap_derive::{self, Args, Parser, Subcommand, ValueEnum}; #[cfg(feature = "unstable-doc")] pub mod _cookbook;