From 5ce4154d2b50dfc4b82eaea772fed82c616b501f Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 26 Apr 2024 15:07:53 +0200 Subject: [PATCH] fix CI by assuring builds work with --all-features enabled (#404) --- src/ffi/c.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ffi/c.rs b/src/ffi/c.rs index 75d69b14..0c3e4e8e 100644 --- a/src/ffi/c.rs +++ b/src/ffi/c.rs @@ -403,7 +403,7 @@ mod c_backend { #[cfg(feature = "zlib-ng")] use libz_ng_sys as libz; - #[cfg(feature = "zlib-rs")] + #[cfg(all(not(feature = "zlib-ng"), feature = "zlib-rs"))] use libz_rs_sys as libz; #[cfg(all(not(feature = "zlib-ng"), feature = "cloudflare_zlib"))] @@ -443,7 +443,7 @@ mod c_backend { #[cfg(feature = "zlib-ng")] const ZLIB_VERSION: &'static str = "2.1.0.devel\0"; - #[cfg(feature = "zlib-rs")] + #[cfg(all(not(feature = "zlib-ng"), feature = "zlib-rs"))] const ZLIB_VERSION: &'static str = "0.1.0\0"; #[cfg(not(any(feature = "zlib-ng", feature = "zlib-rs")))] const ZLIB_VERSION: &'static str = "1.2.8\0";