Cargo Features

[dependencies]
zstd = { version = "0.13.2", default-features = false, features = ["bindgen", "debug", "legacy", "pkg-config", "wasm", "zstdmt", "experimental", "thin", "arrays", "no_asm", "zdict_builder", "doc-cfg", "fat-lto", "thin-lto"] }
default = arrays, legacy, zdict_builder

These default features are set whenever zstd is added without default-features = false somewhere in the dependency tree.

bindgen

Enables bindgen of zstd-safe

debug

Enables debug of zstd-safe

legacy default

Enables legacy of zstd-safe

pkg-config

Enables pkg-config of zstd-safe

wasm
zstdmt

Enables zstdmt of zstd-safe

experimental

Enables experimental of zstd-safe

thin

Enables thin of zstd-safe

arrays default

Enables arrays of zstd-safe

no_asm

Enables no_asm of zstd-safe

zdict_builder default

Enables zdict_builder of zstd-safe

Affects dict::from_continuous, dict::from_samples, dict::from_sample_iterator, dict::from_files

doc-cfg
fat-lto

These two are for cross-language LTO. Will only work if clang is used to build the C library.

Enables fat-lto of zstd-safe

thin-lto

Enables thin-lto of zstd-safe