[package]
edition = "2024"
rust-version = "1.85"
name = "subms-block-cache"
version = "0.5.2"
authors = ["Kieran Smith <oss@submillisecond.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "submillisecond.com cookbook recipe - memory: subms-block-cache. Clock-sweep block cache with constant-time eviction."
homepage = "https://submillisecond.com/cookbook/recipes/subms-block-cache"
readme = "README.md"
keywords = [
"cache",
"lru",
"clock-sweep",
"subms",
"low-latency",
]
categories = [
"caching",
"data-structures",
]
license = "MIT OR Apache-2.0"
[features]
arc = []
concurrent-shards = []
default = []
harness = ["dep:subms"]
metrics = []
tinylfu = []
weighted = []
[lib]
name = "subms_block_cache"
path = "src/lib.rs"
[[example]]
name = "perf_features"
path = "examples/perf_features.rs"
required-features = [
"harness",
"arc",
"tinylfu",
"weighted",
"concurrent-shards",
"metrics",
]
[[example]]
name = "perf_main"
path = "examples/perf_main.rs"
required-features = ["harness"]
[[test]]
name = "cache_tests"
path = "tests/cache_tests.rs"
[[test]]
name = "sub_millisecond_bench"
path = "tests/sub_millisecond_bench.rs"
[dependencies.subms]
version = "0.5.2"
optional = true