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:
parent
0770f6ce61
commit
230c891df0
7 changed files with 28 additions and 28 deletions
|
@ -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"));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue