2 releases

0.1.1 Apr 23, 2019
0.1.0 Apr 23, 2019

#10 in #version-info

Download history 16/week @ 2024-07-22 14/week @ 2024-07-29 8/week @ 2024-08-05 13/week @ 2024-08-12 17/week @ 2024-08-19 23/week @ 2024-08-26 25/week @ 2024-09-02 27/week @ 2024-09-09 14/week @ 2024-09-16 24/week @ 2024-09-23 65/week @ 2024-09-30 24/week @ 2024-10-07 168/week @ 2024-10-14 37/week @ 2024-10-21 14/week @ 2024-10-28 37/week @ 2024-11-04

259 downloads per month

LGPL-3.0-or-later

5KB
56 lines

build-version

Build status

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