&gt;  does Rust use some other build configuration tool<p>Yes. Rust ships with cargo, which is probably the best build configuration tool ever written, and I&#x27;ve tried a lot of them, for a lot of different languages.<p>It has clean, non-hacky solutions to all of the cases you listed, and a lot more besides those.