Cargo Features

[dependencies]
chd = { version = "0.3.1", default-features = false, features = ["std", "cd_full", "verify_block_crc", "huffman_api", "codec_api", "unstable_lending_iterators", "want_subcode", "want_raw_data_sector", "max_perf", "fast_zlib", "fast_lzma", "fast_zstd"] }
default = cd_full, std

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

std default fast_lzma? fast_zlib? fast_zstd?
cd_full default = want_raw_data_sector, want_subcode
verify_block_crc = want_raw_data_sector, want_subcode

disabled by default for speed

huffman_api

currently unstable APIs

Affects chd::huffman

codec_api

Affects chd::codecs

unstable_lending_iterators = lending-iterator, nougat

Affects chd::iter

want_subcode cd_full verify_block_crc?

if disabled results may be unwanted

want_raw_data_sector cd_full verify_block_crc?
max_perf = fast_lzma, fast_zlib, fast_zstd

performance tweaks

fast_zlib max_perf? = std

Enables zlib-ng of flate2

codecs

fast_lzma max_perf? = std
fast_zstd max_perf? = std, zstd-safe

Affects zstd::ZstdCodec

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.

zstd-safe fast_zstd?
lending-iterator unstable_lending_iterators?
nougat unstable_lending_iterators?