1#![cfg_attr(not(feature = "std"), no_std)]
2#![cfg_attr(feature = "nightly", feature(optimize_attribute))]
3
4#[cfg(feature = "alloc")]
5extern crate alloc;
6
7pub mod error;
8pub mod hint;
9
10pub mod bitstream;
11pub mod fse;
12pub mod hash;
13pub mod huffman;
14pub mod xxhash;
15
16pub mod block;
17pub mod frame;
18
19pub mod simd;
20
21pub mod sequence;
22pub use sequence::Sequence;
23
24#[cfg(feature = "alloc")]
25pub mod dict;
26
27pub use error::{CompressError, DecompressError, ZstdError};
28
29pub const DEFAULT_DECOMPRESS_LIMIT: usize = usize::MAX;
30
31pub const SAFE_DECOMPRESS_LIMIT: usize = 128 * 1024 * 1024;
36
37#[doc(hidden)]
38pub const LARGE_OUTPUT_THRESHOLD: usize = 512 * 1024;