ere: Compiling Regular Expressions at Build-Time—by Kia Orita—Seattle Rust User Group, December 2025

Channel

ere: Compiling Regular Expressions at Build-Time With Proc Macros

Nearly all regular expressions libraries compile regular expressions into some data structure at run time, then execute over that data structure. With Rust's proc-macro system, we can do better: regular expressions can be checked and compiled into equivalent Rust code at build time, while also using Rust's type system to ergonomically represent the semantics of returned capture groups based on the regular expression's structure.

Slides: https://docs.google.com/presentation/d/1lvjiNdsoEedWjpHoc3eJFEfHErjG9_I…
Project: https://github.com/2kai2kai2/ere
Kai: https://github.com/2kai2kai2

Seattle Rust User Group:
https://www.meetup.com/Seattle-Rust-Meetup/
https://discord.gg/4pDnjgaEV6