Skip to content

Commit

Permalink
fix build maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Sep 24, 2024
1 parent 5a87fb8 commit adda7bb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ xz = ["xz-static"]
xz-static = ["libcramjam/xz-static"]
xz-shared = ["libcramjam/xz-shared"]

igzip = ["isal-static"]
isal-static = ["libcramjam/isal-static"]
isal-shared = ["libcramjam/isal-shared"]
use-system-isal-static = ["libcramjam/use-system-isal", "libcramjam/isal-static"]
use-system-isal-shared = ["libcramjam/use-system-isal", "libcramjam/isal-shared"]
igzip = ["igzip-static"]
igzip-static = ["libcramjam/igzip-static"]
igzip-shared = ["libcramjam/igzip-shared"]
use-system-isal-static = ["libcramjam/use-system-isal", "libcramjam/igzip-static"]
use-system-isal-shared = ["libcramjam/use-system-isal", "libcramjam/igzip-shared"]

gzip = ["gzip-static"]
gzip-static = ["libcramjam/gzip-static"]
Expand All @@ -54,8 +54,8 @@ wasm32-compat = ["libcramjam/wasm32-compat"]
[dependencies]
pyo3 = { version = "^0.22", default-features = false, features = ["macros"] }
# libcramjam = { version = "0.5.0", default-features = false }
# libcramjam = { git = "https://github.com/cramjam/libcramjam.git", branch = "bump-isal", default-features = false }
libcramjam = { path = "../libcramjam", default-features = false }
libcramjam = { git = "https://github.com/cramjam/libcramjam.git", branch = "bump-isal", default-features = false }
# libcramjam = { path = "../libcramjam", default-features = false }

[build-dependencies]
pyo3-build-config = "^0.22"
Expand Down
5 changes: 4 additions & 1 deletion src/experimental.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ pub mod experimental {
#[pymodule_export]
use crate::blosc2::blosc2;

#[cfg(all(feature = "igzip", target_pointer_width = "64"))]
#[cfg(all(
any(feature = "igzip", feature = "igzip-static", feature = "igzip-shared"),
target_pointer_width = "64"
))]
#[pymodule_export]
use crate::igzip::igzip;
}
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ pub mod bzip2;
pub mod deflate;
#[cfg(any(feature = "gzip", feature = "gzip-static", feature = "gzip-shared"))]
pub mod gzip;
#[cfg(all(feature = "igzip", target_pointer_width = "64"))]
#[cfg(all(
any(feature = "igzip", feature = "igzip-static", feature = "igzip-shared"),
target_pointer_width = "64"
))]
pub mod igzip;
#[cfg(feature = "lz4")]
pub mod lz4;
Expand Down

0 comments on commit adda7bb

Please sign in to comment.