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))]
|
2016-03-16 00:05:05 +00:00
|
|
|
|
2017-01-29 16:25:09 +00:00
|
|
|
#![cfg_attr(feature = "cargo-clippy", allow(unused_io_amount))]
|
|
|
|
|
2017-01-18 15:17:10 +00:00
|
|
|
#[macro_use] extern crate error_chain;
|
|
|
|
#[macro_use] extern crate futures;
|
2016-12-31 11:51:44 +00:00
|
|
|
#[macro_use] extern crate lazy_static;
|
|
|
|
#[macro_use] extern crate log;
|
2017-01-29 12:50:18 +00:00
|
|
|
#[macro_use] extern crate serde_json;
|
|
|
|
|
|
|
|
#[cfg(not(feature = "with-syntex"))]
|
|
|
|
#[macro_use] extern crate serde_derive;
|
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;
|
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-05-07 11:55:59 +00:00
|
|
|
extern crate mdns;
|
2017-01-29 12:50:18 +00:00
|
|
|
extern crate num_bigint;
|
|
|
|
extern crate num_integer;
|
|
|
|
extern crate num_traits;
|
2015-07-08 18:28:17 +00:00
|
|
|
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;
|
2016-12-31 11:51:44 +00:00
|
|
|
extern crate shannon;
|
2015-07-08 18:28:17 +00:00
|
|
|
extern crate tempfile;
|
2017-01-18 05:57:36 +00:00
|
|
|
extern crate tokio_core;
|
|
|
|
extern crate tokio_proto;
|
2017-01-18 15:17:10 +00:00
|
|
|
extern crate url;
|
2017-01-18 05:57:36 +00:00
|
|
|
|
2016-12-31 13:30:01 +00:00
|
|
|
extern crate librespot_protocol as protocol;
|
|
|
|
|
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-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;
|
|
|
|
|
2017-01-18 20:39:46 +00:00
|
|
|
#[macro_use] mod component;
|
2017-01-19 22:45:24 +00:00
|
|
|
|
2017-01-20 01:59:18 +00:00
|
|
|
pub mod album_cover;
|
2016-12-31 11:51:44 +00:00
|
|
|
pub mod audio_backend;
|
|
|
|
pub mod audio_decrypt;
|
|
|
|
pub mod audio_file;
|
|
|
|
pub mod audio_key;
|
|
|
|
pub mod cache;
|
2017-01-19 22:45:24 +00:00
|
|
|
pub mod channel;
|
2016-12-31 11:51:44 +00:00
|
|
|
pub mod diffie_hellman;
|
2017-01-18 21:33:52 +00:00
|
|
|
pub mod mercury;
|
2016-12-31 11:51:44 +00:00
|
|
|
pub mod metadata;
|
|
|
|
pub mod player;
|
2017-01-18 15:17:10 +00:00
|
|
|
pub mod session;
|
2016-12-31 11:51:44 +00:00
|
|
|
pub mod util;
|
|
|
|
pub mod version;
|
2016-03-17 03:31:57 +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");
|