lib.rs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #![crate_name = "librespot"]
  2. #![cfg_attr(not(feature = "with-syntex"), feature(plugin, custom_derive))]
  3. #![cfg_attr(not(feature = "with-syntex"), plugin(protobuf_macros))]
  4. #![cfg_attr(not(feature = "with-syntex"), plugin(json_macros))]
  5. #![cfg_attr(not(feature = "with-syntex"), plugin(serde_macros))]
  6. #![cfg_attr(feature="clippy", feature(plugin))]
  7. #![cfg_attr(feature="clippy", plugin(clippy))]
  8. #[macro_use] extern crate error_chain;
  9. #[macro_use] extern crate futures;
  10. #[macro_use] extern crate lazy_static;
  11. #[macro_use] extern crate log;
  12. extern crate bit_set;
  13. extern crate byteorder;
  14. extern crate crypto;
  15. extern crate eventual;
  16. extern crate getopts;
  17. extern crate hyper;
  18. extern crate linear_map;
  19. extern crate lmdb_rs;
  20. extern crate mdns;
  21. extern crate num;
  22. extern crate protobuf;
  23. extern crate rand;
  24. extern crate rpassword;
  25. extern crate rustc_serialize;
  26. extern crate serde;
  27. extern crate serde_json;
  28. extern crate shannon;
  29. extern crate tempfile;
  30. extern crate tokio_core;
  31. extern crate tokio_proto;
  32. extern crate url;
  33. extern crate librespot_protocol as protocol;
  34. #[cfg(not(feature = "with-tremor"))]
  35. extern crate vorbis;
  36. #[cfg(feature = "with-tremor")]
  37. extern crate tremor as vorbis;
  38. #[cfg(feature = "alsa-backend")]
  39. extern crate alsa;
  40. #[cfg(feature = "portaudio")]
  41. extern crate portaudio;
  42. #[cfg(feature = "libpulse-sys")]
  43. extern crate libpulse_sys;
  44. #[macro_use] mod component;
  45. pub mod album_cover;
  46. pub mod audio_backend;
  47. pub mod audio_decrypt;
  48. pub mod audio_file2;
  49. pub mod audio_file;
  50. pub mod audio_key;
  51. pub mod cache;
  52. pub mod diffie_hellman;
  53. pub mod link;
  54. pub mod mercury;
  55. pub mod metadata;
  56. pub mod player;
  57. pub mod session;
  58. pub mod stream;
  59. pub mod util;
  60. pub mod version;
  61. #[cfg(feature = "with-syntex")] include!(concat!(env!("OUT_DIR"), "/lib.rs"));
  62. #[cfg(not(feature = "with-syntex"))] include!("lib.in.rs");