[package]
edition = "2024"
rust-version = "1.89"
name = "mzstd"
version = "0.1.0"
build = false
exclude = [
".github/**",
"architecture/**",
"benchmarks/**",
"docs/**",
"fuzz/**",
"mzstd-ffi/**",
"specifications/**",
"target/**",
"testdata/**",
"zstd-ffi/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zstandard (RFC 8878) compression and decompression in safe Rust; single-threaded encoding is byte-identical to zstd 1.5.7"
homepage = "https://github.com/M-Compressors/mzstd"
documentation = "https://docs.rs/mzstd"
readme = "README.md"
keywords = [
"zstd",
"zstandard",
"compression",
"encoder",
"decoder",
]
categories = [
"compression",
"algorithms",
"no-std",
]
license = "MIT"
repository = "https://github.com/M-Compressors/mzstd"
[features]
compression = ["dep:thiserror"]
decompression = ["dep:thiserror"]
default = [
"std",
"compression",
"decompression",
]
hotpath = [
"dep:hotpath",
"hotpath/hotpath",
]
hotpath-alloc = [
"hotpath",
"hotpath/hotpath-alloc",
]
hotpath-cpu = [
"hotpath",
"hotpath/hotpath-cpu",
]
no_std = []
std = ["thiserror?/std"]
[lib]
name = "mzstd"
path = "src/lib.rs"
[[test]]
name = "compressor_api"
path = "tests/compressor_api.rs"
[[test]]
name = "compressor_identity"
path = "tests/compressor_identity.rs"
[[test]]
name = "compressor_io"
path = "tests/compressor_io.rs"
[[test]]
name = "decoder_api"
path = "tests/decoder_api.rs"
[[test]]
name = "decoder_corruption"
path = "tests/decoder_corruption.rs"
[[test]]
name = "decoder_golden"
path = "tests/decoder_golden.rs"
[[test]]
name = "decoder_io"
path = "tests/decoder_io.rs"
[[test]]
name = "decoder_oracle"
path = "tests/decoder_oracle.rs"
[[test]]
name = "parallel"
path = "tests/parallel.rs"
[[bench]]
name = "compress"
path = "benches/compress.rs"
harness = false
required-features = ["compression"]
[[bench]]
name = "decompress"
path = "benches/decompress.rs"
harness = false
required-features = ["decompression"]
[dependencies.hotpath]
version = "0.28"
optional = true
[dependencies.thiserror]
version = "2"
optional = true
default-features = false
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.rayon]
version = "1.12"