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 whenever liblzma is added without default-features = false somewhere in the dependency tree.

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 specified

Enables 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.

tokio-io tokio?
futures tokio?

Enables futures ^0.1.26

num_cpus parallel?