Warning
This post was published 42 days ago. The information described in this article may have changed.
Backstory: I am porting some C# library to Rust. The library uses some T4 script to generate C# code compile-time to be included in build, by using another C# code. The code itself is reading several files from build environment and populates several non-trivial classes with read data and their relationship.
Is something like that possible in Rust? So far I reckon:
build.rs
to execute Rust code compile-time, but I wonder if outputing a new Rust source from read data in this step is a good strategy2 posts - 2 participants
🏷️ rust_feed