Konubinix' opinionated web of thoughts

Rust Macros

Fleeting

Macros - The Rust Programming Language

There are some strange edge cases with macro_rules!. In the future, Rust will have a second kind of declarative macro that will work in a similar fashion but fix some of these edge cases. After that update, macro_rules! will be effectively deprecated. With this in mind, as well as the fact that most Rust programmers will use macros more than write macros, we won’t discuss macro_rules! any further. To learn more about how to write macros, consult the online documentation or other resources, such as “The Little Book of Rust Macros”.

https://doc.rust-lang.org/stable/book/ch19-06-macros.html