Add semver constant, rename "build id" env var

This commit is contained in:
johannesd3 2021-02-13 18:43:24 +01:00 committed by Johannes Dertmann
parent 85be0d075a
commit bce4858b9e
2 changed files with 6 additions and 2 deletions

View file

@ -15,5 +15,6 @@ fn main() {
.map(|()| rng.sample(Alphanumeric))
.take(8)
.collect();
println!("cargo:rustc-env=VERGEN_BUILD_ID={}", build_id);
println!("cargo:rustc-env=LIBRESPOT_BUILD_ID={}", build_id);
}

View file

@ -10,5 +10,8 @@ pub const SHA_SHORT: &str = env!("VERGEN_SHA_SHORT");
/// Date of the latest git commit.
pub const COMMIT_DATE: &str = env!("VERGEN_COMMIT_DATE");
/// Librespot crate version.
pub const SEMVER: &str = env!("CARGO_PKG_VERSION");
/// A random build id.
pub const BUILD_ID: &str = env!("VERGEN_BUILD_ID");
pub const BUILD_ID: &str = env!("LIBRESPOT_BUILD_ID");