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