nrc/proc-macro-rules

How do I call the procedural version of vec?

Opened this issue · 1 comments

kpp commented

pub fn vec(input: TokenStream) -> TokenStream {

There is an example how to write it, but there is no example how to call it in the code.

nrc commented

exactly the same way as the macro_rules version, but you will need to enable a feature (proc_macro_hygiene or something similar) and import the macro.

Would be good to document this, I suppose