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 default-features = false somewhere in the dependency tree.

Enables bzip2-sys

libbz2-rs-sys

Use the pure rust libbz2-rs-sys instead of the C FFI bindings of bzip2-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 when bzip2-sys is used, and has no effect when libbz2-rs-sys is used as the bzip2 implementation.

Enables static of optional bzip2-sys