From e670e98073bc7e1b5f59a19535da6b50cf294daa Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Wed, 1 May 2024 15:19:52 -0700 Subject: [PATCH] fix: only compile new example if a Deflate encoder is enabled --- examples/write-large-file.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/write-large-file.rs b/examples/write-large-file.rs index 7302f7d2..2b8ee943 100644 --- a/examples/write-large-file.rs +++ b/examples/write-large-file.rs @@ -3,6 +3,7 @@ use std::io::Write; use zip::write::SimpleFileOptions; +#[cfg(feature = "_deflate-any")] fn main() -> Result<(), Box> { let args: Vec<_> = std::env::args().collect(); if args.len() < 2 {