Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't enable the static feature when using libbz2-rs-sys #122

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ quickcheck = "1.0"

[features]
default = ["dep:bzip2-sys"]
# Use `libbz2-rs-sys` instead of the C FFI bindings of `bzip2-sys`
# Using the rust implementation is always static
libbz2-rs-sys = ["dep:libbz2-rs-sys", "static"]
# Enable this feature if you want to have a statically linked bzip2
# Use the pure rust `libbz2-rs-sys` instead of the C FFI bindings of `bzip2-sys`
# The rust bzip2 implementation is always statically linked.
libbz2-rs-sys = ["dep:libbz2-rs-sys"]
# Always build `libbz2` from C source, and statically link it.
# This flag is only meaningful when `bzip2-sys` is used,
# and has no effect when `libbz2-rs-sys` is used as the bzip2 implementation.
static = ["bzip2-sys?/static"]
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ bzip2 = { version = "0.5.0", default-features = false, features = ["libbz2-rs-sy

*`static`*

Always build `libbz2` from source, and statically link it. When `libbz2-rs-sys` is enabled, static mode is always used.
Always build `libbz2` from C source, and statically link it. This flag is only meaningful when `bzip2-sys` is used,
and has no effect when `libbz2-rs-sys` is used as the bzip2 implementation.

## License

Expand Down
Loading