2 releases

0.1.1 Apr 23, 2019
0.1.0 Apr 23, 2019

#31 in #describe

Download history 22/week @ 2024-03-11 14/week @ 2024-03-18 24/week @ 2024-03-25 54/week @ 2024-04-01 15/week @ 2024-04-08 44/week @ 2024-04-15 27/week @ 2024-04-22 8/week @ 2024-04-29 8/week @ 2024-05-06 22/week @ 2024-05-13 16/week @ 2024-05-20 8/week @ 2024-05-27 14/week @ 2024-06-03 15/week @ 2024-06-10 7/week @ 2024-06-17 28/week @ 2024-06-24

66 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