Let's say I have a file with some constants in it. This file probably comes from a different service and might be different for different scenarios. Now I want to squeeze every last bit of performance out of my program, want the compiler to do as much optimization as possible and I would compile the project for every scenario separately if needed.
Is there a way to take a file at compile time, turn it into rust code through some conversion logic, e.g. generate some constants, and compile the result (all inside the rust tooling, no other code-generation)?