1#![doc = include_str!("../Readme.md")]
14#![no_std]
15#![deny(trivial_casts, trivial_numeric_casts, rust_2018_idioms)]
16
17#[cfg(feature = "std")]
18extern crate std;
19
20#[cfg(not(feature = "rustc-dep-of-std"))]
21extern crate alloc;
22
23#[cfg(feature = "std")]
24pub(crate) const VERBOSE: bool = false;
25
26macro_rules! vprintln {
27 ($($x:expr),*) => {
28 #[cfg(feature = "std")]
29 if crate::VERBOSE {
30 std::println!($($x),*);
31 }
32 }
33}
34
35pub mod decoding;
36pub mod encoding;
37
38pub(crate) mod blocks;
39
40#[cfg(feature = "fuzz_exports")]
41pub mod fse;
42#[cfg(feature = "fuzz_exports")]
43pub mod huff0;
44
45#[cfg(not(feature = "fuzz_exports"))]
46pub(crate) mod fse;
47#[cfg(not(feature = "fuzz_exports"))]
48pub(crate) mod huff0;
49
50mod tests;
51
52#[cfg(feature = "std")]
53pub mod io;
54
55#[cfg(not(feature = "std"))]
56pub mod io_nostd;
57
58#[cfg(not(feature = "std"))]
59pub use io_nostd as io;