cachekit-core 0.2.0

LZ4 compression, xxHash3 integrity, AES-256-GCM encryption for byte payloads
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.85"
name = "cachekit-core"
version = "0.2.0"
authors = ["cachekit Contributors"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "LZ4 compression, xxHash3 integrity, AES-256-GCM encryption for byte payloads"
homepage = "https://github.com/cachekit-io/cachekit-core"
documentation = "https://docs.rs/cachekit-core"
readme = "README.md"
keywords = [
    "lz4",
    "xxhash3",
    "aes-gcm",
    "encryption",
    "compression",
]
categories = [
    "compression",
    "cryptography",
]
license = "MIT"
repository = "https://github.com/cachekit-io/cachekit-core"

[package.metadata.kani]
default-unwind = 10
output-format = "terse"
concrete-playback = "print"
enable-unstable = false
solver = "cadical"

[package.metadata.kani.unstable]
stubbing = false

[features]
checksum = ["dep:xxhash-rust"]
compression = ["dep:lz4_flex"]
default = [
    "compression",
    "checksum",
    "messagepack",
]
encryption = [
    "dep:ring",
    "dep:zeroize",
    "dep:hkdf",
    "dep:sha2",
    "dep:hmac",
    "dep:generic-array",
    "dep:aes-gcm",
    "dep:aes",
    "dep:getrandom",
]
ffi = []
messagepack = ["dep:rmp-serde"]
wasm = ["encryption"]

[lib]
name = "cachekit_core"
crate-type = [
    "cdylib",
    "rlib",
    "staticlib",
]
path = "src/lib.rs"

[[example]]
name = "bench_throughput"
path = "examples/bench_throughput.rs"

[[test]]
name = "byte_storage_tests"
path = "tests/byte_storage_tests.rs"

[[test]]
name = "compatibility_test"
path = "tests/compatibility_test.rs"

[[test]]
name = "concurrent_encryption_stress"
path = "tests/concurrent_encryption_stress.rs"

[[test]]
name = "concurrent_nonce_stress"
path = "tests/concurrent_nonce_stress.rs"

[[test]]
name = "encryption_tests"
path = "tests/encryption_tests.rs"

[[test]]
name = "large_payload_tests"
path = "tests/large_payload_tests.rs"

[[test]]
name = "property_tests"
path = "tests/property_tests.rs"

[[test]]
name = "wasm32_compat_tests"
path = "tests/wasm32_compat_tests.rs"

[dependencies.aes]
version = "0.8"
features = ["zeroize"]
optional = true

[dependencies.aes-gcm]
version = "0.10"
features = ["zeroize"]
optional = true

[dependencies.byteorder]
version = "1.5"

[dependencies.bytes]
version = "1.5"

[dependencies.generic-array]
version = "0.14"
optional = true

[dependencies.getrandom]
version = "0.2"
features = ["js"]
optional = true

[dependencies.hkdf]
version = "0.12"
optional = true

[dependencies.hmac]
version = "0.12"
optional = true

[dependencies.lz4_flex]
version = "0.12"
features = [
    "frame",
    "std",
]
optional = true

[dependencies.rmp-serde]
version = "1.3"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_bytes]
version = "0.11"

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.xxhash-rust]
version = "0.8"
features = ["xxh3"]
optional = true

[dependencies.zeroize]
version = "1.8"
features = ["derive"]
optional = true

[dev-dependencies.aes-gcm]
version = "0.10"
features = ["zeroize"]

[dev-dependencies.blake2]
version = "0.10"

[dev-dependencies.hex]
version = "0.4"

[dev-dependencies.proptest]
version = "1.4"

[dev-dependencies.serde_json]
version = "1.0"

[build-dependencies.cbindgen]
version = "0.29"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ring]
version = "0.17"
optional = true

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(kani)"]