I am integrating a new Rust component into a pre-existing, non-Rust repository with a well-established versioning and release strategy (think version.txt or GitVersion).
Rather than manually updating my Rust program's Cargo.toml each time we prepare for release, I'm wondering if there is some way to dynamically override the version number at build time. For example:
cargo build --my-custom-version-number 1.2.3
Obviously such a flag doesn't exist today. I'm wondering if anybody out there is in a similar situation and knows of a solution or workaround. Barring that, would there be any interest in adding such a flag to Cargo?