I rewrote the `memoize` crate using macro_rules using nightly features
⚓ Rust 📅 2025-08-17 👤 surdeus 👁️ 12Currently only supports basic usage, not full usage with lru and config.
I saw the new macro_attr attribute and wanted to try it out (alongside macro_metavar_expr_concat), so I found a proc_macro crate that seemed simple enough and rewrote it based on its documentation.
I hope this serves as a good proof-of-concept of what will hopefully be possible in stable rust in the future, and potentially inspire other people to mess around with macro_rules!.
4 posts - 2 participants
🏷️ Rust_feed