diff --git a/src/experimental.rs b/src/experimental.rs index a3570e3e..c09a477e 100644 --- a/src/experimental.rs +++ b/src/experimental.rs @@ -13,7 +13,7 @@ pub mod experimental { #[pymodule_export] use crate::blosc2::blosc2; - #[cfg(feature = "igzip")] + #[cfg(any(feature = "igzip", feature = "isal-static", feature = "isal-shared"))] #[pymodule_export] use crate::igzip::igzip; } diff --git a/src/igzip.rs b/src/igzip.rs index 6e5c47f2..4a5fd9e1 100644 --- a/src/igzip.rs +++ b/src/igzip.rs @@ -2,6 +2,7 @@ use pyo3::prelude::*; /// igzip de/compression interface +#[cfg(any(feature = "igzip", feature = "isal-static", feature = "isal-shared"))] #[pymodule] pub mod igzip { diff --git a/src/lib.rs b/src/lib.rs index fa99d28d..ff5651aa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -61,12 +61,12 @@ pub mod blosc2; pub mod brotli; #[cfg(feature = "bzip2")] pub mod bzip2; -#[cfg(feature = "igzip")] -pub mod igzip; #[cfg(any(feature = "deflate", feature = "deflate-static", feature = "deflate-shared"))] pub mod deflate; #[cfg(any(feature = "gzip", feature = "gzip-static", feature = "gzip-shared"))] pub mod gzip; +#[cfg(any(feature = "igzip", feature = "isal-static", feature = "isal-shared"))] +pub mod igzip; #[cfg(feature = "lz4")] pub mod lz4; #[cfg(feature = "snappy")]