Skip to content

Commit

Permalink
Don't enable the stdio feature for the rust implementation of bzip2
Browse files Browse the repository at this point in the history
This improves portability and for the C version we are already using
BZ_NO_STDIO anyway.
  • Loading branch information
bjorn3 authored and folkertdev committed Dec 11, 2024
1 parent ab518cf commit c83aef6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c83aef6

Please sign in to comment.