cache2 0.1.2

Performance-first bounded RAM and NVMe hybrid cache
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 = "2024"
rust-version = "1.98"
name = "cache2"
version = "0.1.2"
build = false
exclude = [
    "fuzz/",
    ".github/",
    "AGENTS.md",
]
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"

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

[lib]
name = "cache2"
path = "src/lib.rs"

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

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

[[bench]]
name = "cache"
path = "benches/cache.rs"
harness = false

[[bench]]
name = "cache_soak"
path = "benches/cache_soak.rs"
harness = false

[[bench]]
name = "recovery_scale"
path = "benches/recovery_scale.rs"
harness = false

[[bench]]
name = "region_index_turnover"
path = "benches/region_index_turnover.rs"
harness = false
required-features = ["benchmarking"]

[dependencies.crc-fast]
version = "1.10.0"
features = ["std"]
default-features = false

[dependencies.log]
version = "0.4.31"
features = ["kv"]

[dependencies.mea]
version = "0.6.5"

[dependencies.tokio]
version = "1.53.1"
features = [
    "rt",
    "sync",
    "time",
]

[dependencies.twox-hash]
version = "2.1.4"
features = [
    "std",
    "xxhash3_64",
]
default-features = false

[dev-dependencies.logforth]
version = "0.30.1"
features = [
    "bridge-log",
    "filter-rustlog",
    "layout-json",
]
default-features = false

[dev-dependencies.tokio]
version = "1.53.1"
features = [
    "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.14"
optional = true

[target."cfg(unix)".dependencies.libc]
version = "0.2.189"

[lints.clippy]
all = "warn"

[lints.rust]
unsafe_op_in_unsafe_fn = "deny"