2015-07-08 18:28:17 +00:00
|
|
|
#![crate_name = "librespot"]
|
|
|
|
|
2016-03-07 18:16:43 +00:00
|
|
|
#![cfg_attr(not(feature = "with-syntex"), feature(plugin))]
|
|
|
|
#![cfg_attr(not(feature = "with-syntex"), plugin(protobuf_macros))]
|
|
|
|
#![cfg_attr(not(feature = "with-syntex"), plugin(json_macros))]
|
2015-07-08 18:28:17 +00:00
|
|
|
|
2016-03-16 00:05:05 +00:00
|
|
|
#![cfg_attr(feature="clippy", feature(plugin))]
|
|
|
|
#![cfg_attr(feature="clippy", plugin(clippy))]
|
|
|
|
|
2016-01-02 15:19:39 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate lazy_static;
|
2015-07-08 18:28:17 +00:00
|
|
|
|
2015-09-01 11:20:37 +00:00
|
|
|
extern crate bit_set;
|
2015-07-08 18:28:17 +00:00
|
|
|
extern crate byteorder;
|
|
|
|
extern crate crypto;
|
2015-09-01 11:20:37 +00:00
|
|
|
extern crate eventual;
|
2016-04-24 12:29:26 +00:00
|
|
|
extern crate getopts;
|
2016-03-13 20:03:09 +00:00
|
|
|
extern crate hyper;
|
2016-05-04 09:03:46 +00:00
|
|
|
extern crate linear_map;
|
2016-03-16 04:07:04 +00:00
|
|
|
extern crate lmdb_rs;
|
2015-07-08 18:28:17 +00:00
|
|
|
extern crate num;
|
|
|
|
extern crate protobuf;
|
|
|
|
extern crate shannon;
|
|
|
|
extern crate rand;
|
2016-04-24 12:29:26 +00:00
|
|
|
extern crate rpassword;
|
2016-01-01 23:16:12 +00:00
|
|
|
extern crate rustc_serialize;
|
2015-07-08 18:28:17 +00:00
|
|
|
extern crate time;
|
|
|
|
extern crate tempfile;
|
2016-01-01 23:16:12 +00:00
|
|
|
extern crate url;
|
2016-03-13 15:15:15 +00:00
|
|
|
|
2016-03-24 09:31:33 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate log;
|
2015-08-25 21:51:49 +00:00
|
|
|
|
2016-03-13 15:15:15 +00:00
|
|
|
#[cfg(not(feature = "with-tremor"))]
|
2015-09-01 11:20:37 +00:00
|
|
|
extern crate vorbis;
|
2016-03-13 15:15:15 +00:00
|
|
|
#[cfg(feature = "with-tremor")]
|
|
|
|
extern crate tremor as vorbis;
|
2015-07-08 18:28:17 +00:00
|
|
|
|
2016-01-02 01:12:07 +00:00
|
|
|
#[cfg(feature = "dns-sd")]
|
|
|
|
extern crate dns_sd;
|
|
|
|
|
2016-03-16 00:05:05 +00:00
|
|
|
#[cfg(feature = "openssl")]
|
|
|
|
extern crate openssl;
|
|
|
|
|
2016-03-20 16:16:11 +00:00
|
|
|
#[cfg(feature = "portaudio")]
|
|
|
|
extern crate portaudio;
|
|
|
|
|
2016-03-20 19:16:32 +00:00
|
|
|
#[cfg(feature = "libpulse-sys")]
|
|
|
|
extern crate libpulse_sys;
|
|
|
|
|
2016-01-27 10:40:00 +00:00
|
|
|
extern crate librespot_protocol as protocol;
|
2015-07-08 18:28:17 +00:00
|
|
|
|
2016-04-24 13:47:52 +00:00
|
|
|
// include!/include_bytes! don't play nice with syntex, so place these here
|
2016-03-17 03:31:57 +00:00
|
|
|
pub mod version {
|
|
|
|
include!(concat!(env!("OUT_DIR"), "/version.rs"));
|
|
|
|
|
|
|
|
pub fn version_string() -> String {
|
|
|
|
format!("librespot-{}", short_sha())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-04-24 13:47:52 +00:00
|
|
|
#[cfg(feature = "static-appkey")]
|
|
|
|
static APPKEY: Option<&'static [u8]> = Some(include_bytes!(concat!(env!("CARGO_MANIFEST_DIR"), "/spotify_appkey.key")));
|
|
|
|
#[cfg(not(feature = "static-appkey"))]
|
|
|
|
static APPKEY: Option<&'static [u8]> = None;
|
|
|
|
|
2016-03-07 18:16:43 +00:00
|
|
|
#[cfg(feature = "with-syntex")]
|
|
|
|
include!(concat!(env!("OUT_DIR"), "/lib.rs"));
|
|
|
|
|
|
|
|
#[cfg(not(feature = "with-syntex"))]
|
|
|
|
include!("lib.in.rs");
|