Skip to content

Commit

Permalink
fix: Explicitly list items to re-export from derive
Browse files Browse the repository at this point in the history
This allows rustc to give a nice note about activating
the derive feature when it has not been activated.
  • Loading branch information
Noratrieb committed Aug 15, 2024
1 parent cedb1f0 commit 74a1218
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 74a1218

Please sign in to comment.