I got another question about procedure_macro_attribute.
Suppose I have this attribute:
#[attribute(module_path!())] // a rust item
What I am trying to do here is that I want to get the module path of the code at call site and use that in my attribute:
// the path should be the module path of the src which calls the attribute #[attribute(crate::mod::name)] // rust item
However, I don't know if there's anyway to force an eager expansion of
module_path!(), currently my attribute cannot handle
module_path!() as input, it can only handle a valid rust path.
How should I do that? Or is there any workaround to get the module path of the call site of proc_macro?