[package]
edition = "2024"
rust-version = "1.85"
name = "subms-block-cache"
version = "0.10.0"
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://www.submillisecond.com/cookbook/recipes/subms-block-cache"
documentation = "https://www.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"
repository = "https://github.com/submillisecond/subms-cookbook/tree/main/recipes/subms-block-cache"
[package.metadata.docs.rs]
all-features = true
[features]
arc = []
concurrent-shards = []
default = []
full = [
"arc",
"tinylfu",
"weighted",
"concurrent-shards",
"metrics",
]
harness = ["dep:subms"]
metrics = []
tinylfu = []
weighted = []
[lib]
name = "subms_block_cache"
path = "src/lib.rs"
[[example]]
name = "growth_main"
path = "examples/growth_main.rs"
required-features = ["harness"]
[[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"]
[[example]]
name = "sample_app"
path = "examples/sample_app.rs"
[[test]]
name = "sub_millisecond_bench"
path = "tests/sub_millisecond_bench.rs"
[dependencies.subms]
version = "0.9.3"
optional = true