The Little Book of Rust Macros.

Because writing books about Rust is the kewl thing to do these days (and because I don’t have the personality or ethic for a blog), it’s a big brain-dump of a fair part of what I know about writing macros in Rust.

This is intended to be kind of like the Rustonomicon, but for macros: it goes through how they work, the gotchas, the weird minutiae, and contains various patterns and examples.

It is not finished, in the sense that a major part of it is meant to collect patterns, building blocks, and annotated examples. The two introductions (one methodical, one practical) should be more or less done. If you feel anything is missing from them, please let me know.

If you want to contribute, there’s a few things that will help: