librespot/src/lib.rs

70 lines
1.7 KiB
Rust
Raw Normal View History

#![crate_name = "librespot"]
2016-07-06 01:29:38 +00:00
#![cfg_attr(not(feature = "with-syntex"), feature(plugin, custom_derive))]
#![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))]
2016-03-16 00:05:05 +00:00
#![cfg_attr(feature="clippy", feature(plugin))]
#![cfg_attr(feature="clippy", plugin(clippy))]
#[macro_use] extern crate error_chain;
#[macro_use] extern crate futures;
#[macro_use] extern crate lazy_static;
#[macro_use] extern crate log;
2015-09-01 11:20:37 +00:00
extern crate bit_set;
extern crate byteorder;
extern crate crypto;
extern crate getopts;
extern crate hyper;
extern crate linear_map;
extern crate lmdb_rs;
extern crate mdns;
extern crate num;
extern crate protobuf;
extern crate rand;
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;
extern crate shannon;
extern crate tempfile;
2017-01-18 05:57:36 +00:00
extern crate tokio_core;
extern crate tokio_proto;
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;
#[cfg(not(feature = "with-tremor"))]
2015-09-01 11:20:37 +00:00
extern crate vorbis;
#[cfg(feature = "with-tremor")]
extern crate tremor as vorbis;
2016-03-14 02:16:59 +00:00
#[cfg(feature = "alsa-backend")]
extern crate alsa;
#[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;
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;
pub mod diffie_hellman;
2017-01-18 21:33:52 +00:00
pub mod mercury;
pub mod metadata;
pub mod player;
pub mod session;
pub mod util;
pub mod version;
2016-03-17 03:31:57 +00:00
#[cfg(feature = "with-syntex")] include!(concat!(env!("OUT_DIR"), "/lib.rs"));
#[cfg(not(feature = "with-syntex"))] include!("lib.in.rs");