2 releases

0.1.1 Apr 23, 2019
0.1.0 Apr 23, 2019

#35 in #describe

Download history 9/week @ 2023-12-04 12/week @ 2023-12-11 7/week @ 2023-12-18 2/week @ 2024-01-01 5/week @ 2024-01-08 9/week @ 2024-01-15 7/week @ 2024-01-22 24/week @ 2024-01-29 13/week @ 2024-02-05 11/week @ 2024-02-12 38/week @ 2024-02-19 24/week @ 2024-02-26 24/week @ 2024-03-04 22/week @ 2024-03-11 14/week @ 2024-03-18

90 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