mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Add semver constant, rename "build id" env var
This commit is contained in:
parent
85be0d075a
commit
bce4858b9e
2 changed files with 6 additions and 2 deletions
|
@ -15,5 +15,6 @@ fn main() {
|
||||||
.map(|()| rng.sample(Alphanumeric))
|
.map(|()| rng.sample(Alphanumeric))
|
||||||
.take(8)
|
.take(8)
|
||||||
.collect();
|
.collect();
|
||||||
println!("cargo:rustc-env=VERGEN_BUILD_ID={}", build_id);
|
|
||||||
|
println!("cargo:rustc-env=LIBRESPOT_BUILD_ID={}", build_id);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,5 +10,8 @@ pub const SHA_SHORT: &str = env!("VERGEN_SHA_SHORT");
|
||||||
/// Date of the latest git commit.
|
/// Date of the latest git commit.
|
||||||
pub const COMMIT_DATE: &str = env!("VERGEN_COMMIT_DATE");
|
pub const COMMIT_DATE: &str = env!("VERGEN_COMMIT_DATE");
|
||||||
|
|
||||||
|
/// Librespot crate version.
|
||||||
|
pub const SEMVER: &str = env!("CARGO_PKG_VERSION");
|
||||||
|
|
||||||
/// A random build id.
|
/// A random build id.
|
||||||
pub const BUILD_ID: &str = env!("VERGEN_BUILD_ID");
|
pub const BUILD_ID: &str = env!("LIBRESPOT_BUILD_ID");
|
||||||
|
|
Loading…
Reference in a new issue