Skip to content

Commit

Permalink
Fix feature gates for igzip
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Sep 23, 2024
1 parent 9aba45d commit 0c9ea58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/experimental.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
1 change: 1 addition & 0 deletions src/igzip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit 0c9ea58

Please sign in to comment.