lib.rs 787 B

123456789101112131415161718192021222324252627
  1. #[macro_use] extern crate log;
  2. #[macro_use] extern crate futures;
  3. extern crate bit_set;
  4. extern crate byteorder;
  5. extern crate crypto;
  6. extern crate num_traits;
  7. extern crate num_bigint;
  8. extern crate tempfile;
  9. extern crate librespot_core as core;
  10. mod fetch;
  11. mod decrypt;
  12. #[cfg(not(any(feature = "with-tremor", feature = "with-vorbis")))]
  13. mod lewton_decoder;
  14. #[cfg(any(feature = "with-tremor", feature = "with-vorbis"))]
  15. mod libvorbis_decoder;
  16. pub use fetch::{AudioFile, AudioFileOpen};
  17. pub use decrypt::AudioDecrypt;
  18. #[cfg(not(any(feature = "with-tremor", feature = "with-vorbis")))]
  19. pub use lewton_decoder::{VorbisDecoder, VorbisPacket, VorbisError};
  20. #[cfg(any(feature = "with-tremor", feature = "with-vorbis"))]
  21. pub use libvorbis_decoder::{VorbisDecoder, VorbisPacket, VorbisError};