Jump to content

Inside Rust’s Meta-Programming Revolution: Macros 2.0: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

17 November 2025

  • curprev 15:2715:27, 17 November 2025 PC talk contribs 10,494 bytes +10,494 Created page with "500px “Wait, Rust Has Macros?” If you’re new to Rust, the word macro probably evokes flashbacks to C’s preprocessor nightmares — #define spaghetti, double-evaluated expressions, and impossible-to-debug expansions.
But Rust’s macros are nothing like that. They’re not dumb text substitution engines. 
They’re syntactic transformers — fully aware of types, scopes, and syntax trees. And with Macros 2.0, Rust is..."