diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index bbd16533..48b4ab59 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -144,7 +144,7 @@ jobs: target: ${{ matrix.conf.target }} manylinux: ${{ matrix.conf.manylinux }} docker-options: -e BLOSC2_INSTALL_PREFIX=${{ github.workspace }}/blosc2 -e LD_LIBRARY_PATH=${{ github.workspace }}/blosc2/lib:${{ github.workspace }}/blosc2/lib64 - args: -i ${{ matrix.python-version }} --release --out dist --features use-system-blosc2 + args: -i ${{ matrix.python-version }} --release --out dist --features use-system-blosc2-static before-script-linux: ls -l $BLOSC2_INSTALL_PREFIX - name: Build wheel (Windows) diff --git a/Cargo.toml b/Cargo.toml index 9676bb4b..dfea61ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,15 +13,26 @@ name = "cramjam" crate-type = ["cdylib"] [features] -default = ["extension-module"] +default = ["extension-module", "snappy", "lz4", "bzip2", "brotli", "xz", "zstd", "gzip", "deflate", "blosc2"] extension-module = ["pyo3/extension-module"] generate-import-lib = ["pyo3/generate-import-lib"] # needed for Windows PyPy builds -use-system-blosc2 = ["libcramjam/use-system-blosc2"] + +snappy = ["libcramjam/snappy"] +lz4 = ["libcramjam/lz4"] +bzip2 = ["libcramjam/bzip2"] +brotli = ["libcramjam/brotli"] +xz = ["libcramjam/xz"] +zstd = ["libcramjam/zstd"] +gzip = ["libcramjam/gzip"] +deflate = ["libcramjam/deflate"] +blosc2 = ["libcramjam/blosc2"] +use-system-blosc2-static = ["libcramjam/use-system-blosc2", "libcramjam/blosc2-static"] +use-system-blosc2-shared = ["libcramjam/use-system-blosc2", "libcramjam/blosc2-shared"] [dependencies] pyo3 = { version = "^0.22", default-features = false, features = ["macros"] } -libcramjam = { version = "0.4.2" } +libcramjam = { version = "0.4.2", default-features = false } [build-dependencies] pyo3-build-config = "^0.22"