Are there standard ways to get info such as the current Git revision ID into an executable during the cargo build process? There's CARGO_PKG_VERSION
, but that's from Cargo.toml
, not from Git.
The info you get from "git describe" would be fine as a "build ID".
(Yes, I could write a build script to run "git describe", but this seems like something that would already be available.)