Cargo Features
[dependencies]
liblzma = { version = "0.3.6", default-features = false, features = ["tokio", "static", "parallel", "bindgen", "wasm", "fat-lto", "thin-lto"] }
- 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
- fat-lto
-
These two are for cross-language LTO. Will only work if
clang
is used to build the C library. Enable fat-lto, will override thin-lto if specifiedEnables fat-lto of liblzma-sys
- thin-lto
-
Enable thin-lto, will fall back to fat-lto if not supported
Enables thin-lto 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.