How do I use a macro across module files?
Macros within the same crate New method (since Rust 1.32, 2019-01-17) foo::bar!(); // works mod foo { macro_rules! bar { () => () } pub(crate) use bar; // <– the trick } foo::bar!(); // works With the pub use, the macro can be used and imported like any other item. And unlike the older method, … Read more