Closed CreepySkeleton closed 2 years ago
@dtolnay Function-like and attribute macros can exist in the same crate with the same name, correct? If so, I think this should be relatively easy to modify the existing code to add support for this. I may be able to do it if my understanding is correct.
Sometimes it's neat to have a macro expanding to
true
orfalse
instead of attribute. I propose to implementrusversion::cfg!(stable...)
macro.By the way, I believe it can be implemented via