Cargo Features
bzip2 has no features set by default.
[dependencies]
bzip2 = { version = "0.5.0", 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 = static
-
Use
libbz2-rs-sys
instead of the C FFI bindings ofbzip2-sys
Using the rust implementation is always staticEnables libbz2-rs-sys
- static libbz2-rs-sys?
-
Enable this feature if you want to have a statically linked bzip2