[package]
edition = "2024"
rust-version = "1.85"
name = "compress-lib"
version = "0.4.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
exclude = [
"/fuzz/",
"/bench-compare/",
"/tests/data/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "DEFLATE, zlib, and gzip for Rust services: streaming and sans-IO with bounded memory, hard limits against decompression bombs, WebSocket permessage-deflate (RFC 7692) support, no unsafe code, and zero third-party dependencies."
homepage = "https://github.com/jamesgober/compress-lib"
documentation = "https://docs.rs/compress-lib"
readme = "README.md"
keywords = [
"deflate",
"gzip",
"zlib",
"compression",
"inflate",
]
categories = [
"compression",
"no-std",
"encoding",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/compress-lib"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["std"]
std = []
[lib]
name = "compress_lib"
path = "src/lib.rs"
[[example]]
name = "streaming"
path = "examples/streaming.rs"
required-features = ["std"]
[[test]]
name = "alloc"
path = "tests/alloc.rs"
[[test]]
name = "differential"
path = "tests/differential.rs"
[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"
[[bench]]
name = "checksum"
path = "benches/checksum.rs"
harness = false
[[bench]]
name = "deflate"
path = "benches/deflate.rs"
harness = false
[[bench]]
name = "inflate"
path = "benches/inflate.rs"
harness = false
[dependencies]
[dev-dependencies.criterion]
version = "0.5"
default-features = false
[dev-dependencies.miniz_oxide]
version = "0.8"
features = ["with-alloc"]
default-features = false
[dev-dependencies.proptest]
version = "1"
features = ["std"]
default-features = false
[dev-dependencies.zlib-rs]
version = "0.6"
features = ["rust-allocator"]
default-features = false
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(fuzzing)"]
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "symbols"