[package]
edition = "2024"
rust-version = "1.98"
name = "cache2"
version = "0.6.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Performance-first bounded RAM and NVMe hybrid cache"
documentation = "https://docs.rs/cache2"
readme = "README.md"
keywords = [
"cache",
"nvme",
"storage",
]
categories = [
"caching",
"data-structures",
]
license = "Apache-2.0"
repository = "https://github.com/scopedb/cache2"
[package.metadata.docs.rs]
all-features = true
[features]
benchmarking = []
default = []
io-uring = ["dep:io-uring"]
[lib]
name = "cache2"
path = "src/lib.rs"
[dependencies.asyncband]
version = "0.8.0"
features = [
"barrier",
"event",
"semaphore",
]
[dependencies.hashcrew]
version = "0.3.0"
features = [
"std",
"crc",
"xxhash",
]
[dependencies.log]
version = "0.4.35"
features = ["kv"]
[dependencies.tokio]
version = "1.54.1"
features = [
"rt",
"time",
]
[dev-dependencies.crc-fast]
version = "1.10.0"
features = ["std"]
default-features = false
[dev-dependencies.quickcheck]
version = "1.1.0"
default-features = false
[dev-dependencies.tokio]
version = "1.54.1"
features = [
"rt",
"time",
"macros",
"rt-multi-thread",
]
[target.'cfg(all(target_os = "linux", any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "riscv64", target_arch = "loongarch64", target_arch = "powerpc64")))'.dependencies.io-uring]
version = "0.7.16"
optional = true
[target."cfg(unix)".dependencies.libc]
version = "0.2.191"
[lints.clippy]
dbg_macro = "deny"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
unknown_lints = "deny"
unsafe_op_in_unsafe_fn = "deny"
unused_must_use = "deny"