comptime-rs
comptime-rs copied to clipboard
comptime doesn't parse `$crate` inside a declarative macro
Thank you for this useful crate!
I was trying to put comptime inside a macro_rules declarative macro in crate A, which uses $crate to refers to public exports in A. When using the macro in crate B, comptime complains that it cannot parse the content of the macro invocation as an expression because of $crate. Is there a workaround other than hardcoding the name of crate A into the macro?