41 lines
1.3 KiB
TOML
41 lines
1.3 KiB
TOML
[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"]
|
|
__internal-api = [] # export internal symbols for use in `libz-rs-sys`.
|
|
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.
|
|
lsx = [] # use LSX to speed up various parts of zlib-rs. Feature stabilized in 1.89.0, intrinsics are unstable.
|
|
|
|
|
|
[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
|