version_string() -> String1 pub fn version_string() -> String {
2 format!("librespot-{}", short_sha())
3 }
4
5 // Generate a timestamp representing now (UTC) in RFC3339 format.
now() -> &'static str6 pub fn now() -> &'static str {
7 env!("VERGEN_BUILD_TIMESTAMP")
8 }
9
10 // Generate a timstamp string representing now (UTC).
short_now() -> &'static str11 pub fn short_now() -> &'static str {
12 env!("VERGEN_BUILD_DATE")
13 }
14
15 // Generate a SHA string
sha() -> &'static str16 pub fn sha() -> &'static str {
17 env!("VERGEN_SHA")
18 }
19
20 // Generate a short SHA string
short_sha() -> &'static str21 pub fn short_sha() -> &'static str {
22 env!("VERGEN_SHA_SHORT")
23 }
24
25 // Generate the commit date string
commit_date() -> &'static str26 pub fn commit_date() -> &'static str {
27 env!("VERGEN_COMMIT_DATE")
28 }
29
30 // Generate the target triple string
target() -> &'static str31 pub fn target() -> &'static str {
32 env!("VERGEN_TARGET_TRIPLE")
33 }
34
35 // Generate a semver string
semver() -> &'static str36 pub fn semver() -> &'static str {
37 // env!("VERGEN_SEMVER")
38 env!("CARGO_PKG_VERSION")
39 }
40
41 // Generate a random build id.
build_id() -> &'static str42 pub fn build_id() -> &'static str {
43 env!("VERGEN_BUILD_ID")
44 }
45