2015-07-08 18:28:17 +00:00
|
|
|
#![crate_name = "librespot"]
|
|
|
|
|
2016-07-06 01:29:38 +00:00
|
|
|
#![cfg_attr(not(feature = "with-syntex"), feature(plugin, custom_derive))]
|
2016-03-07 18:16:43 +00:00
|
|
|
#![cfg_attr(not(feature = "with-syntex"), plugin(protobuf_macros))]
|
|
|
|
#![cfg_attr(not(feature = "with-syntex"), plugin(json_macros))]
|
2016-07-06 01:29:38 +00:00
|
|
|
#![cfg_attr(not(feature = "with-syntex"), plugin(serde_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-12-31 11:51:44 +00:00
|
|
|
#[macro_use] extern crate lazy_static;
|
|
|
|
#[macro_use] extern crate log;
|
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;
|
2016-05-07 11:55:59 +00:00
|
|
|
extern crate mdns;
|
2015-07-08 18:28:17 +00:00
|
|
|
extern crate num;
|
|
|
|
extern crate protobuf;
|
|
|
|
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;
|
2016-07-06 01:29:38 +00:00
|
|
|
extern crate serde;
|
|
|
|
extern crate serde_json;
|
2016-12-31 11:51:44 +00:00
|
|
|
extern crate shannon;
|
2015-07-08 18:28:17 +00:00
|
|
|
extern crate tempfile;
|
2016-01-01 23:16:12 +00:00
|
|
|
extern crate url;
|
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-03-16 00:05:05 +00:00
|
|
|
#[cfg(feature = "openssl")]
|
|
|
|
extern crate openssl;
|
|
|
|
|
2016-03-14 02:16:59 +00:00
|
|
|
#[cfg(feature = "alsa-backend")]
|
|
|
|
extern crate alsa;
|
|
|
|
|
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-12-31 11:51:44 +00:00
|
|
|
pub mod album_cover;
|
|
|
|
pub mod audio_backend;
|
|
|
|
pub mod audio_decrypt;
|
|
|
|
pub mod audio_file2;
|
|
|
|
pub mod audio_file;
|
|
|
|
pub mod audio_key;
|
|
|
|
pub mod cache;
|
|
|
|
pub mod connection;
|
|
|
|
pub mod diffie_hellman;
|
|
|
|
pub mod link;
|
|
|
|
pub mod main_helper;
|
|
|
|
pub mod metadata;
|
|
|
|
pub mod player;
|
|
|
|
pub mod stream;
|
|
|
|
pub mod util;
|
|
|
|
pub mod version;
|
2016-03-17 03:31:57 +00:00
|
|
|
|
2016-12-31 11:51:44 +00:00
|
|
|
#[cfg(feature = "facebook")]
|
|
|
|
pub mod spotilocal;
|
2016-03-07 18:16:43 +00:00
|
|
|
|
2016-12-31 11:51:44 +00:00
|
|
|
#[cfg(feature = "with-syntex")] include!(concat!(env!("OUT_DIR"), "/lib.rs"));
|
|
|
|
#[cfg(not(feature = "with-syntex"))] include!("lib.in.rs");
|