[pbs-devel] [PATCH proxmox] compression: make Deflate{De, En}coderBuilder public
Maximiliano Sandoval
m.sandoval at proxmox.com
Thu Jul 25 11:22:06 CEST 2024
These structs are returned by the public method
`Deflate{En,De}coder::builder`.
Reported-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
proxmox-compression/src/deflate/mod.rs | 4 ++--
proxmox-compression/src/lib.rs | 4 +++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/proxmox-compression/src/deflate/mod.rs b/proxmox-compression/src/deflate/mod.rs
index 94faabb3..b86bd274 100644
--- a/proxmox-compression/src/deflate/mod.rs
+++ b/proxmox-compression/src/deflate/mod.rs
@@ -1,8 +1,8 @@
mod compression;
mod decompression;
-pub use compression::{DeflateEncoder, Level};
-pub use decompression::DeflateDecoder;
+pub use compression::{DeflateEncoder, DeflateEncoderBuilder, Level};
+pub use decompression::{DeflateDecoder, DeflateDecoderBuilder};
const BUFFER_SIZE: usize = 8192;
diff --git a/proxmox-compression/src/lib.rs b/proxmox-compression/src/lib.rs
index 817d2af5..af962154 100644
--- a/proxmox-compression/src/lib.rs
+++ b/proxmox-compression/src/lib.rs
@@ -1,6 +1,8 @@
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
-pub use deflate::{DeflateDecoder, DeflateEncoder, Level};
+pub use deflate::{
+ DeflateDecoder, DeflateDecoderBuilder, DeflateEncoder, DeflateEncoderBuilder, Level,
+};
mod deflate;
pub mod tar;
--
2.39.2
More information about the pbs-devel
mailing list