I know what the $crate variable is, but as far as I can tell, it can\'t be used inside procedural macros. Is there another way to achieve a similar effect?
I have an ex
Since Rust 1.34, you can use extern my_crate as self, and use my_crate::Foo instead of $crate::Foo.
extern my_crate as self
my_crate::Foo
$crate::Foo
https://github.com/rust-lang/rust/issues/54647
https://github.com/rust-lang/rust/pull/57407
(Credit: Neptunepink ##rust irc.freenode.net)