You also bet on wrong languages. M4 is battle-tested, stood the test of time, and is much more stable.
Or more precisely, as a result of that monoculture there is a single implementation of build.rs and it cannot interoperate with anything else. If cargo could optionally generate a build.ninja file or some JSON with the command it runs, it would be so much easier.