I created a macro and 'exported' it in 'lib.rs' file like this:
pub mod utils {
macro_rules! my_macro {
() => {};
}
pub(crate) use my_macro;
}
The code above is working fine and I can use my_macro
in all modules,
But the problem is I can't use (import) it in 'tests' directory to test it. like so:
use my_crate::utils::my_macro;
The compiler gives me an error: 'macro my_macro
is private'. So what should I do?