Keyword Arguments Macro

Hiya!

this crate implements keyword arguments in Rust using the old macro system.

I'm trying to implement keyword arguments using the new macro system using syn and quote.

The trick they use is, that they insert a struct implementing the TTMacroExpander trait into the syntax_env of the ExtCtxt given to the proc-macro.

What would be the equivalent of this in the new rust macro ecosystem?

Best,
ambiso

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.