[package] name = "zstd-rs" version = "0.1.0" edition = "2021" [lib] crate-type = ["staticlib"] [features] default = ["compression", "decompression", "dict-builder"] compression = [] decompression = [] dict-builder = [] huf-force-decompress-x1 = [] huf-force-decompress-x2 = [] # POSIX DEBUGLEVEL >= 1 replaces pthread objects in the C ABI with pointers. debug-pthread = [] # Legacy-format decoders (zstd v0.1 .. v0.7). Never default features: the # build systems map ZSTD_LEGACY_SUPPORT=N to the features for versions >= N, # exactly mirroring which lib/legacy/zstd_v0N.c files the C build compiles. # A feature whose version is not yet ported to Rust gates nothing; the # original C file still provides that decoder. legacy-v01 = [] legacy-v02 = [] legacy-v03 = [] legacy-v04 = [] legacy-v05 = [] legacy-v06 = [] legacy-v07 = [] [dependencies] libc = "0.2"