1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-05 02:39:53 +02:00

Print librespot version on startup.

This commit is contained in:
Paul Lietar 2016-03-17 03:31:57 +00:00
parent 0770f6ce61
commit 230c891df0
7 changed files with 28 additions and 28 deletions

View file

@ -39,6 +39,15 @@ extern crate openssl;
extern crate librespot_protocol as protocol;
// This doesn't play nice with syntex, so place it here
pub mod version {
include!(concat!(env!("OUT_DIR"), "/version.rs"));
pub fn version_string() -> String {
format!("librespot-{}", short_sha())
}
}
#[cfg(feature = "with-syntex")]
include!(concat!(env!("OUT_DIR"), "/lib.rs"));