My Little Procedural Macro
summary
Maud is a procedural macro that generates HTML with compile-time checks and very low runtime cost, proven over 376 commits and three years of fixes. Benchmarks show render times in nanoseconds versus ~100 ms for a web request, and the implementation uses daily Travis CI builds on nightly Rust, an explicit AST with spans to preserve error locations, and a parenthesized substitution syntax; the library is usable in production.
AI-written summary · about
chapters (10)
- 0:00Start
- 0:40What Is a Procedural Macro
- 6:19Render Time in Nanoseconds
- 7:04Static Type Checking
- 12:57Subscribe to Relevant Tracking Issues
- 14:04Lit Statement
- 15:29Syntax for Substituting and Dynamic Content
- 20:27Abstract Syntax Tree
- 21:39Keep the Spans
- 25:36Closing Keynote
related talks
29mProcedural Macros vs Sliced Bread
29mMacromancy: an introduction to Rust macros
28mA gentle introduction to procedural macros
26mMaking life easier with Derive and other tools
23mC preprossor macros from functional programs
18mImpractical Macros
24mMacros for a More Productive Rust
39mRust metaprogramming - macro_rules! beyond basics
