3 ms·
Rust has plenty of support for compile-time code generation of all kinds. It's generally viewed as something that should be done only as a last-resort, but it's
by zozbot234 6y ago
Rust has plenty of support for compile-time code generation of all kinds. It's generally viewed as something that should be done only as a last-resort, but it's there and fully supported.
- weinzierl 6y agoDo you know good resources for learning about these options?
- estebank 6y agoThe book has a good intro to their capabilities: https://doc.rust-lang.org/stable/book/ch19-06-macros.html https://doc.rust-lang.org/stable/book/ch19-06-macros.html There are blog posts exploring some of the use cases for them, but it depends a lot on what you want to do.