From 7ca84489029b8e725eb6f0b8990118e82756116e Mon Sep 17 00:00:00 2001 From: marvin-j97 Date: Wed, 14 Aug 2024 16:44:17 +0200 Subject: [PATCH] config: allow setting compression --- src/config.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/config.rs b/src/config.rs index 2e7b5fe..3d4c3fb 100644 --- a/src/config.rs +++ b/src/config.rs @@ -28,6 +28,13 @@ impl Default for Config { } impl Config { + /// Sets the compression & decompression scheme. + #[must_use] + pub fn compression(mut self, compressor: C) -> Self { + self.compression = compressor; + self + } + /// Sets the blob cache. /// /// You can create a global [`BlobCache`] and share it between multiple