cache2 0.3.0

Performance-first bounded RAM and NVMe hybrid cache
Documentation
# Copyright 2026 ScopeDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

[package]
name = "cache2"
version = "0.3.0"
description = "Performance-first bounded RAM and NVMe hybrid cache"
documentation = "https://docs.rs/cache2"
keywords = ["cache", "nvme", "storage"]
categories = ["caching", "data-structures"]

edition.workspace = true
license.workspace = true
readme.workspace = true
repository.workspace = true
rust-version.workspace = true

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
asyncband = { workspace = true }
crc-fast = { workspace = true }
log = { workspace = true }
tokio = { workspace = true }
twox-hash = { workspace = true }

[dev-dependencies]
quickcheck = { workspace = true }
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }

[features]
default = []
benchmarking = []
io-uring = ["dep:io-uring"]

[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 = { workspace = true, optional = true }

[target.'cfg(unix)'.dependencies]
libc = { workspace = true }

[lints]
workspace = true