Also, FWIW, I recommend people stop using #[macro_use] and that they use, instead, the more future-compatible and other-items-in-the-language-consistent mechanism of re-exporting a macro_rules! macro:

//! `src/macros.rs`

macro_rules! internal_macro { … }
pub(crate) use internal_macro;

and then you can use crate::macros::internal_macro! anywhere in the crate :wink:

7 Likes