[go: up one dir, main page]

zlib-rs 0.5.4

A memory-safe zlib implementation written in rust
Documentation
[package]
name = "zlib-rs"
readme = "README.md"
description.workspace = true
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
publish.workspace = true
rust-version.workspace = true

[lints.rust]
unsafe_op_in_unsafe_fn = "deny"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
default = ["std", "c-allocator"]
std = ["rust-allocator"]
c-allocator = [] # expose a malloc-based C allocator
rust-allocator = [] # expose a rust global alloctor
__internal-fuzz = ["arbitrary"]
__internal-fuzz-disable-checksum = [] # disable checksum validation on inflate
__internal-test = ["quickcheck"]
ZLIB_DEBUG = []
vpclmulqdq = [] # use avx512 to speed up crc32. Only stable from 1.89.0 onwards.
avx512 = ["vpclmulqdq"] # use avx512 to speed up crc32 and adler32. Only stable from 1.89.0 onwards.


[dependencies]
arbitrary = { workspace = true, optional = true, features = ["derive"] }
quickcheck = { workspace = true, optional = true }

[dev-dependencies]
crc32fast = "1.3.2"
memoffset = "0.9.1"
quickcheck.workspace = true