[package]
edition = "2024"
rust-version = "1.93"
name = "rustycache"
version = "2.0.0"
authors = ["Q300Z"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A simple and easy-to-use caching library for Rust."
readme = "README.md"
keywords = [
"cache",
"ttl",
"LRU",
"LFU",
"FIFO",
]
categories = ["caching"]
license = "MIT"
repository = "https://github.com/Q300Z/rustycache"
[features]
async = ["dep:tokio"]
default = ["async"]
[lib]
name = "rustycache"
path = "src/lib.rs"
[[example]]
name = "simple_async"
path = "examples/simple_async.rs"
[[example]]
name = "simple_sync"
path = "examples/simple_sync.rs"
[[test]]
name = "concurrency_tests"
path = "tests/concurrency_tests.rs"
[[test]]
name = "fifo_tests"
path = "tests/fifo_tests.rs"
[[test]]
name = "lfu_tests"
path = "tests/lfu_tests.rs"
[[test]]
name = "lru_tests"
path = "tests/lru_tests.rs"
[[bench]]
name = "cache_benchmarks"
path = "benches/cache_benchmarks.rs"
harness = false
[[bench]]
name = "contention_benchmarks"
path = "benches/contention_benchmarks.rs"
harness = false
[dependencies.ahash]
version = "0.8.12"
[dependencies.chrono]
version = "0.4"
[dependencies.parking_lot]
version = "0.12"
[dependencies.tokio]
version = "1"
features = ["full"]
optional = true
[dev-dependencies.criterion]
version = "0.8.2"
features = ["async_tokio"]