Merge pull request #398 from Shnatsel/safe-rust-zstd-2

Add safe Rust zstd decoding backend
This commit is contained in:
Sergey "Shnatsel" Davidoff authored and GitHub committed 2026-07-20 00:33:05 +01:00
commit f3f9ff1244
3 files changed
+7 -1

No files matched your search

+2
View File
@@ -720,6 +720,8 @@ impl Image {
)),
#[cfg(feature = "zstd")]
CompressionMethod::ZSTD => Box::new(zstd::Decoder::new(reader)?),
#[cfg(all(not(feature = "zstd"), feature = "zstd-safe-rust"))]
CompressionMethod::ZSTD => Box::new(zrip_decode::streaming::FrameDecoder::new(reader)),
CompressionMethod::PackBits => Box::new(PackBitsReader::new(reader, compressed_length)),
#[cfg(feature = "deflate")]
CompressionMethod::Deflate | CompressionMethod::OldDeflate => {