Rust crates worth reading? prefer < 2k loc; hard limit < 5k loc

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_paste does not offer any real feature over ::paste (not even compile-time), since at that point even ::paste stopped 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 ::syn nor ::quote;

  • and nevertheless feature forging new idents with a procedural macro (in this case, concatenating idents).