diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b9180047..09fd1f4e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,6 +51,8 @@ jobs: shell: bash if: matrix.build == 'msrv' - run: cargo test + - run: cargo test --no-default-features --features libbz2-rs-sys + if: matrix.build != 'msrv' rustfmt: name: Rustfmt diff --git a/Cargo.toml b/Cargo.toml index a4c75231..0ae4af75 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,13 @@ rust-version = "1.65.0" # MSRV [dependencies] libc = "0.2" bzip2-sys = { version = "0.1.11", path = "bzip2-sys", optional = true } -libbz2-rs-sys = { version = "0.1.0", optional = true } + +[dependencies.libbz2-rs-sys] +version = "0.1.0" +# Don't enable the stdio feature for better portability. +default-features = false +features = ["rust-allocator"] +optional = true [dev-dependencies] rand = "0.8"