diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:41 +0000 |
commit | 4f9fe856a25ab29345b90e7725509e9ee38a37be (patch) | |
tree | e4ffd8a9374cae7b21f7cbfb352927e0e074aff6 /vendor/miniz_oxide/src/inflate/stream.rs | |
parent | Adding upstream version 1.68.2+dfsg1. (diff) | |
download | rustc-5cd5bd4daf55da04d2c8e7c06c3067a027cfbfc2.tar.xz rustc-5cd5bd4daf55da04d2c8e7c06c3067a027cfbfc2.zip |
Adding upstream version 1.69.0+dfsg1.upstream/1.69.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | vendor/miniz_oxide/src/inflate/stream.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/miniz_oxide/src/inflate/stream.rs b/vendor/miniz_oxide/src/inflate/stream.rs index 715747166..ee681b67b 100644 --- a/vendor/miniz_oxide/src/inflate/stream.rs +++ b/vendor/miniz_oxide/src/inflate/stream.rs @@ -1,6 +1,7 @@ //! Extra streaming decompression functionality. //! //! As of now this is mainly intended for use to build a higher-level wrapper. +#[cfg(feature = "with-alloc")] use crate::alloc::boxed::Box; use core::{cmp, mem}; @@ -115,6 +116,7 @@ impl InflateState { /// # Parameters /// `data_format`: Determines whether the compressed data is assumed to wrapped with zlib /// metadata. + #[cfg(feature = "with-alloc")] pub fn new_boxed(data_format: DataFormat) -> Box<InflateState> { let mut b: Box<InflateState> = Box::default(); b.data_format = data_format; @@ -136,6 +138,7 @@ impl InflateState { /// The decompressor does not support different window sizes. As such, /// any positive (>0) value will set the zlib header flag, while a negative one /// will not. + #[cfg(feature = "with-alloc")] pub fn new_boxed_with_window_bits(window_bits: i32) -> Box<InflateState> { let mut b: Box<InflateState> = Box::default(); b.data_format = DataFormat::from_window_bits(window_bits); |