vector/sources/util/decompression.rs
1//! Re-export of the shared decompression limits.
2//!
3//! The implementation lives in [`vector_common::decompression`] so that both the source crate and
4//! `lib/codecs` can enforce the same global decompressed-size cap without duplicating it. This
5//! module preserves the historical `crate::sources::util::decompression` import path.
6pub use vector_common::decompression::{
7 CappedDecoder, CappedReader, DEFAULT_MAX_DECOMPRESSED_SIZE_BYTES,
8 DecompressedSizeLimitExceeded, HTTP_ZSTD_WINDOW_LOG_MAX, http_zstd_window_log_max,
9 is_decompressed_size_limit_error, max_decompressed_size_bytes,
10 max_zlib_compressed_frame_size_bytes, max_zstd_window_log, set_max_decompressed_size_bytes,
11 zstd_window_log_max,
12};