https://build.rs/ is a handy Rust pattern for compile-time code generation. E.g. https://rust-lang-nursery.github.io/rust-bindgen/tutorial-3.html
It's a small standalone program that prints lines of Rust code! It reminds me of much more dynamic languages.
Wilfred Hughes
![GitHub - klutzy/nadeko: [INACTIVE] const-time Rust experiment](/preview-images/98a99fc0b15e290e7b47551879bc7c92.png)