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