[package]
name = "chd"
version = "0.3.1"
authors = ["Ronny Chan <ronny@ronnychan.ca>"]
edition = "2021"
description = "Rust implementation of the CHD File Format"
license = "BSD-3-Clause"
repository = "https://github.com/SnowflakePowered/chd-rs"
readme = "../README.md"
categories = ["emulators", "compression", "encoding"]
keywords = ["mame", "chd", "decompression"]
[features]
default = ["std", "cd_full"]
cd_full = ["want_subcode", "want_raw_data_sector"]
std = []
verify_block_crc = ["want_subcode", "want_raw_data_sector"]
huffman_api = []
codec_api = []
unstable_lending_iterators = [ "lending-iterator", "nougat" ]
want_subcode = []
want_raw_data_sector = []
max_perf = ["fast_zlib", "fast_lzma", "fast_zstd"]
fast_zlib = ["std", "flate2/zlib-ng"]
fast_lzma = ["std"]
fast_zstd = ["std", "zstd-safe"]
[dependencies]
byteorder = "1"
num-traits = "0.2"
num-derive = "0.4"
crc = "3"
arrayvec = "0.7"
text_io = "0.1"
take_mut = "0.2.2"
flate2 = { version = "1", default-features = false, features = ["rust_backend"] }
lzma-rs = { package = "lzma-rs-perf-exp", version = "0.2", features = ["raw_decoder"] }
claxon = "0.4"
bitreader = "0.3.6"
ruzstd = "0.6"
zstd-safe = { version = "7.0.0", optional = true }
lending-iterator = { version = "0.1", optional = true }
nougat = { version = "0.2", optional = true }
[dev-dependencies]
bencher = "0.1.5"
[[bench]]
name = "bench"
harness = false
[package.metadata.docs.rs]
features = ["default", "codec_api", "huffman_api", "unstable_lending_iterators"]
rustdoc-args = ["--cfg", "docsrs"]