Cargo Features
[dependencies]
liblzma = { version = "0.3.5", default-features = false, features = ["tokio", "static", "parallel", "bindgen", "wasm"] }
- default = bindgen
-
The
bindgen
feature is set by default wheneverliblzma
is added without
somewhere in the dependency tree.default-features = false - tokio = futures, tokio-io
- static
-
Enables static of liblzma-sys
- parallel = num_cpus
-
Enables parallel of liblzma-sys
Affects
stream::MtStreamBuilder
… - bindgen default
-
Enables bindgen of liblzma-sys
Affects
liblzma::uncompressed_size
… - wasm
-
Enables wasm of liblzma-sys
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.