News for hackers. Stuff that matters.
Re:Tour of Rust by kd5bjo on Sunday July 12, 2020 @04:53AM (#23809949)
The Little Book of Rust Macros is a pretty good, but dense, overview of how macro_rules! can be used. (Procedural macros are a completely different beast).

https://danielkeep.github.io/tlborm/book/index.html

Re:Tour of Rust by 65536 on Sunday July 12, 2020 @04:58AM (#23809970)
Also, there are a lot of uses of macro_rules! in the Rust compiler and standard library repository.

https://github.com/rust-lang/rust/search?q=macro_rules&type=

Looking at some of those and reading https://doc.rust-lang.org/rust-by-example/macros/syntax.html and https://doc.rust-lang.org/reference/macros-by-example.html can potentially be instructive.