Skip to content

Commit c83aef6

Browse files
bjorn3folkertdev
authored andcommitted
Don't enable the stdio feature for the rust implementation of bzip2
This improves portability and for the C version we are already using BZ_NO_STDIO anyway.
1 parent ab518cf commit c83aef6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ rust-version = "1.65.0" # MSRV
2121
[dependencies]
2222
libc = "0.2"
2323
bzip2-sys = { version = "0.1.11", path = "bzip2-sys", optional = true }
24-
libbz2-rs-sys = { version = "0.1.0", optional = true }
24+
25+
[dependencies.libbz2-rs-sys]
26+
version = "0.1.0"
27+
# Don't enable the stdio feature for better portability.
28+
default-features = false
29+
features = ["rust-allocator"]
30+
optional = true
2531

2632
[dev-dependencies]
2733
rand = "0.8"

0 commit comments

Comments
 (0)