diff --git a/core/build.rs b/core/build.rs index e8c71e4a..4877ff46 100644 --- a/core/build.rs +++ b/core/build.rs @@ -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); } diff --git a/core/src/version.rs b/core/src/version.rs index 62778450..ef553463 100644 --- a/core/src/version.rs +++ b/core/src/version.rs @@ -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");