[package]
name = "mzstd"
version = "0.2.7"
edition = "2024"
rust-version = "1.89"
license = "MIT OR Apache-2.0"
description = "Zstandard (RFC 8878) compression and decompression in safe Rust; single-threaded encoding is byte-identical to zstd 1.5.7"
repository = "https://github.com/M-Compressors/mzstd"
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"]
exclude = [
".github/**",
"architecture/**",
"benchmarks/**",
"docs/**",
"fuzz/**",
"mzstd-ffi/**",
"specifications/**",
"target/**",
"testdata/**",
"zstd-ffi/**",
]
[dependencies.thiserror]
version = "2"
optional = true
default-features = false
[dependencies.fearless_simd]
version = "1"
optional = true
default-features = false
[dependencies.fearless_simd_macros]
version = "0.1"
optional = true
[dependencies.branches]
version = "0.5"
optional = true
default-features = false
features = ["prefetch"]
[dependencies.borrowed-buf]
version = "0.1.1"
optional = true
default-features = false
[dependencies.hotpath]
version = "0.28"
optional = true
[dev-dependencies]
rayon = "1.12"
[dev-dependencies.fearless_simd]
version = "1"
default-features = false
features = ["force_support_fallback", "std"]
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.zstd-ffi]
path = "zstd-ffi"
[[bench]]
name = "compress"
harness = false
required-features = ["compression"]
[[bench]]
name = "parallel"
harness = false
required-features = ["compression"]
[[bench]]
name = "dictionary"
harness = false
required-features = ["compression"]
[[bench]]
name = "decompress"
harness = false
required-features = ["decompression"]
[features]
default = ["std", "compression", "decompression"]
compression = [
"dep:borrowed-buf",
"dep:branches",
"dep:fearless_simd",
"dep:fearless_simd_macros",
"dep:thiserror",
]
decompression = [
"dep:borrowed-buf",
"dep:fearless_simd",
"dep:fearless_simd_macros",
"dep:thiserror",
]
std = ["branches?/std", "fearless_simd?/std", "thiserror?/std"]
no_std = ["fearless_simd?/libm"]
hotpath = ["dep:hotpath", "hotpath/hotpath"]
hotpath-cpu = ["hotpath", "hotpath/hotpath-cpu"]
hotpath-alloc = ["hotpath", "hotpath/hotpath-alloc"]
[workspace]
members = ["zstd-ffi", "mzstd-ffi"]
exclude = ["benchmarks/comparison", "fuzz/afl"]
resolver = "3"