Cargo Features
bzip2 has no features set by default.
[dependencies]
bzip2 = { version = "0.5.1", features = ["libbz2-rs-sys", "static"] }
- default
-
These default features are set whenever
bzip2
is added without
somewhere in the dependency tree.default-features = false Enables bzip2-sys
- libbz2-rs-sys
-
Use the pure rust
libbz2-rs-sys
instead of the C FFI bindings ofbzip2-sys
The rust bzip2 implementation is always statically linked.Enables optional bzip2-sys and libbz2-rs-sys
- static
-
Always build
libbz2
from C source, and statically link it. This flag is only meaningful whenbzip2-sys
is used, and has no effect whenlibbz2-rs-sys
is used as the bzip2 implementation.