[package]
edition = "2021"
rust-version = "1.74.0"
name = "cache-rs"
version = "0.3.1"
authors = ["sigsegved"]
build = false
exclude = [
"/.github",
"/.gitignore",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance, memory-efficient cache implementation supporting multiple eviction policies including LRU, LFU, LFUDA, SLRU and GDSF"
homepage = "https://github.com/sigsegved/cache-rs"
documentation = "https://docs.rs/cache-rs"
readme = "README.md"
keywords = [
"cache",
"eviction",
"lru",
"memory",
"concurrent",
]
categories = [
"caching",
"no-std",
"concurrency",
]
license = "MIT"
repository = "https://github.com/sigsegved/cache-rs"
[package.metadata.docs.rs]
all-features = false
features = [
"std",
"concurrent",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
concurrent = ["parking_lot"]
default = ["hashbrown"]
nightly = ["hashbrown/nightly"]
std = []
[lib]
name = "cache_rs"
path = "src/lib.rs"
[[example]]
name = "cache_comparison"
path = "examples/cache_comparison.rs"
[[example]]
name = "concurrent_usage"
path = "examples/concurrent_usage.rs"
required-features = ["concurrent"]
[[example]]
name = "metrics_demo"
path = "examples/metrics_demo.rs"
[[test]]
name = "concurrent_correctness_tests"
path = "tests/concurrent_correctness_tests.rs"
[[test]]
name = "concurrent_stress_tests"
path = "tests/concurrent_stress_tests.rs"
[[test]]
name = "correctness_tests"
path = "tests/correctness_tests.rs"
[[test]]
name = "no_std_tests"
path = "tests/no_std_tests.rs"
[[bench]]
name = "cache_benchmarks"
path = "benches/cache_benchmarks.rs"
[[bench]]
name = "concurrent_benchmarks"
path = "benches/concurrent_benchmarks.rs"
harness = false
required-features = ["concurrent"]
[[bench]]
name = "criterion_benchmarks"
path = "benches/criterion_benchmarks.rs"
harness = false
[dependencies.hashbrown]
version = "0.16"
optional = true
[dependencies.parking_lot]
version = "0.12"
optional = true
[dev-dependencies.criterion]
version = "0.5.1"
[dev-dependencies.scoped_threadpool]
version = "0.1.*"
[dev-dependencies.stats_alloc]
version = "0.1.*"