#![no_std]
#![cfg_attr(feature = "no_unsafe", deny(unsafe_code))]
#![deny(
clippy::correctness,
clippy::perf,
clippy::complexity,
clippy::style,
clippy::nursery,
clippy::pedantic,
clippy::clone_on_ref_ptr,
clippy::decimal_literal_representation,
clippy::float_cmp_const,
clippy::missing_docs_in_private_items,
clippy::multiple_inherent_impl,
clippy::unwrap_used,
clippy::cargo_common_metadata,
clippy::used_underscore_binding
)]
#[cfg(target_pointer_width = "16")]
compile_error!("This crate does not work with 16 bit targets");
#[cfg(feature = "alloc")]
extern crate alloc;
#[cfg(feature = "bcj")]
mod bcj;
mod crc32;
#[cfg(feature = "crc64")]
mod crc64xz;
mod decoder;
#[cfg(feature = "sha256")]
mod sha256;
#[cfg(feature = "std")]
mod stl;
mod clamp;
mod vli;
#[cfg(feature = "delta")]
mod delta;
#[cfg(feature = "std")]
pub use stl::XzReader;
pub use {
decoder::XzCheckType, decoder::XzDecoder, decoder::XzError, decoder::XzNextBlockResult,
decoder::XzStaticDecoder,
};
pub const DICT_SIZE_MIN: usize = 4096;
pub const DICT_SIZE_MAX: usize = 3_221_225_472;
pub const DICT_SIZE_PROFILE_0: usize = 256 * 1024;
pub const DICT_SIZE_PROFILE_1: usize = 1024 * 1024;
pub const DICT_SIZE_PROFILE_2: usize = 2 * 1024 * 1024;
pub const DICT_SIZE_PROFILE_3: usize = 4 * 1024 * 1024;
pub const DICT_SIZE_PROFILE_4: usize = 4 * 1024 * 1024;
pub const DICT_SIZE_PROFILE_5: usize = 8 * 1024 * 1024;
pub const DICT_SIZE_PROFILE_6: usize = 8 * 1024 * 1024;
pub const DICT_SIZE_PROFILE_7: usize = 16 * 1024 * 1024;
pub const DICT_SIZE_PROFILE_8: usize = 32 * 1024 * 1024;
pub const DICT_SIZE_PROFILE_9: usize = 64 * 1024 * 1024;