Is it possible to export a function and a macro with the same name from a module?
Example lib.rs
mod log;
fn foo() {
log::info!("");
log::info("");
}
In log.rs:
Using
pub(crate) use info;conflicts withpub fn info() { .. }Using
#[macro_export]and#[macro_use]doesn't allow namespaces