I'd shameless-ly plug one my own crates, since its purpose was kind of going in that direction:
https://github.com/danielhenrymantilla/mini_paste
- Note that since March or something like that,
mini_pastedoes not offer any real feature over::paste(not even compile-time), since at that point even::pastestopped depending on::syn/::quote.
That being said, it's around a 3-4 hundrer lines of code at most, and it does show how to:
-
setup a procedural macro crate with the front-end / back-end pattern;
-
with no
::synnor::quote; -
and nevertheless feature forging new idents with a procedural macro (in this case, concatenating idents).