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