2 releases
0.1.1 | Apr 23, 2019 |
---|---|
0.1.0 | Apr 23, 2019 |
#10 in #version-info
259 downloads per month
5KB
56 lines
build-version
git version for rust applications
lib.rs
:
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"));
Dependencies
~47KB