[package]
name = "cachekit"
version = "0.2.0-alpha"
edition = "2024"
rust-version = "1.85"
authors = ["Thomas Korrison <ferrite.db@gmail.com>"]
license = "MIT OR Apache-2.0"
description = "High-performance cache primitives with pluggable eviction policies (LRU, LFU, FIFO, 2Q, Clock-PRO, S3-FIFO) and optional metrics."
homepage = "https://oxidizelabs.github.io/cachekit/"
repository = "https://github.com/OxidizeLabs/cachekit"
documentation = "https://oxidizelabs.github.io/cachekit/"
readme = "README.md"
keywords = ["cache", "lru", "lfu", "eviction", "s3-fifo"]
categories = ["caching", "data-structures"]
exclude = ["/.idea/", "/.DS_Store", "/**/.DS_Store"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
targets = ["x86_64-unknown-linux-gnu"]
[features]
default = []
metrics = []
[dependencies]
parking_lot = "0.12"
log = "0.4"
rustc-hash = "2.1"
[dev-dependencies]
criterion = "0.8"
dhat = "0.3"
lru = "0.16"
quick_cache = "0.6"
rand = "0.9"
rand_distr = "0.5"
[[bench]]
name = "workloads"
harness = false
[[bench]]
name = "ops"
harness = false
[[bench]]
name = "comparison"
harness = false
[[bench]]
name = "reports"
harness = false
[[bench]]
name = "policy_lru"
path = "benches/policy/lru.rs"
harness = false
[[bench]]
name = "policy_lfu"
path = "benches/policy/lfu.rs"
harness = false
[[bench]]
name = "policy_lru_k"
path = "benches/policy/lru_k.rs"
harness = false
[[bench]]
name = "policy_s3_fifo"
path = "benches/policy/s3_fifo.rs"
harness = false
[profile.dev]
opt-level = 0
debug = true
debug-assertions = true
overflow-checks = true
lto = false
panic = "unwind"
incremental = true
codegen-units = 256
[profile.test]
opt-level = 1
debug = true
debug-assertions = true
overflow-checks = true
lto = false
incremental = true
codegen-units = 256
[profile.release]
opt-level = 3
debug = false
debug-assertions = false
overflow-checks = false
lto = "fat"
panic = "abort"
codegen-units = 1
strip = true
[profile.bench]
opt-level = 3
debug = false
debug-assertions = false
overflow-checks = false
lto = "thin"
codegen-units = 1
strip = true