lib.rs 787 B

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