2 releases

0.1.1 Apr 23, 2019
0.1.0 Apr 23, 2019

#5 in #out-dir

Download history 39/week @ 2025-04-30 38/week @ 2025-05-07 13/week @ 2025-05-14 162/week @ 2025-05-21 107/week @ 2025-05-28 25/week @ 2025-06-04 9/week @ 2025-06-11 23/week @ 2025-06-18 9/week @ 2025-06-25 15/week @ 2025-07-02 29/week @ 2025-07-09 15/week @ 2025-07-16 5/week @ 2025-07-23 23/week @ 2025-07-30 1/week @ 2025-08-06 26/week @ 2025-08-13

56 downloads per month

LGPL-3.0-or-later

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

Build status

git version for rust applications

Dependencies

~47KB