I'm having trouble re-using macros within a crate.
If a macro is defined in ./src/macros.rs
:
#[macro_export]
macro_rules! my_macro {
...
}
and used in ./src/lib.rs
:
#[macro_use]
pub mod macros;
I can't see this macro in ./src/submod/lib.rs
:
my_macro!(...);
It yields the error message error: macro undefined: 'my_macro!'
.
Is there a way I can import this macro in this child module submod
?