| 1 | #![no_std ] |
| 2 | #![deny (trivial_casts, trivial_numeric_casts, rust_2018_idioms)] |
| 3 | |
| 4 | #[cfg (feature = "std" )] |
| 5 | extern crate std; |
| 6 | |
| 7 | #[cfg (not(feature = "rustc-dep-of-std" ))] |
| 8 | extern crate alloc; |
| 9 | |
| 10 | #[cfg (feature = "std" )] |
| 11 | pub const VERBOSE: bool = false; |
| 12 | |
| 13 | macro_rules! vprintln { |
| 14 | ($($x:expr),*) => { |
| 15 | #[cfg(feature = "std" )] |
| 16 | if crate::VERBOSE { |
| 17 | std::println!($($x),*); |
| 18 | } |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | pub mod blocks; |
| 23 | pub mod decoding; |
| 24 | pub mod frame; |
| 25 | pub mod frame_decoder; |
| 26 | pub mod fse; |
| 27 | pub mod huff0; |
| 28 | pub mod streaming_decoder; |
| 29 | mod tests; |
| 30 | |
| 31 | #[cfg (feature = "std" )] |
| 32 | pub mod io; |
| 33 | |
| 34 | #[cfg (not(feature = "std" ))] |
| 35 | pub mod io_nostd; |
| 36 | |
| 37 | #[cfg (not(feature = "std" ))] |
| 38 | pub use io_nostd as io; |
| 39 | |
| 40 | pub use frame_decoder::BlockDecodingStrategy; |
| 41 | pub use frame_decoder::FrameDecoder; |
| 42 | pub use streaming_decoder::StreamingDecoder; |
| 43 | |