comptime-rs icon indicating copy to clipboard operation
comptime-rs copied to clipboard

comptime doesn't parse `$crate` inside a declarative macro

Open juntyr opened this issue 1 year ago • 0 comments

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?

juntyr avatar Aug 28 '24 12:08 juntyr