2 releases
| 0.1.1 | Apr 23, 2019 |
|---|---|
| 0.1.0 | Apr 23, 2019 |
#5 in #out-dir
56 downloads per month
5KB
56 lines
Application version information from git
Creates constant GIT_BUILD_VERSION from git command git describe --tags --always
Add to bulid.rs:
extern crate build_version;
fn main() {
build_version::write_version_file().expect("Failed to write version.rs file");
}
Add to main.rs:
include!(concat!(env!("OUT_DIR"), "/version.rs"));
build-version
git version for rust applications
Dependencies
~47KB