Thread with 2 posts
jump to expanded postmy kingdom for normal rust macro scoping
what i want:
pub macro_rules! foo {
// …
}
what i'm forced to put up whenever i want to use intra-doc links, which is basically always:
/// Please don't write `use crate::foo;`. I know, I can't
/// stop you. But you have to write `use
/// crate::qux::baz::foo;`, because there is a meaning to
/// this module hierarchy. I am literally Begging you. I am
/// prostrating myself before you. I'm crying. Can't you
/// see how much this is hurting me? Please. Please. Please.
#[macro_export]
macro_rules! foo {
…
}
pub use crate::foo;
decided to make a post on the posting site https://internals.rust-lang.org/t/pub-on-macro-rules/19358