[package]
edition = "2024"
rust-version = "1.88"
name = "neocache"
version = "1.0.0"
authors = ["Shopify Engineering <opensource@shopify.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A concurrent HashMap with S3-FIFO cache eviction, forked from DashMap"
homepage = "https://github.com/Shopify/neocache"
documentation = "https://docs.rs/neocache"
readme = "README.md"
keywords = [
"cache",
"concurrent",
"hashmap",
"eviction",
"s3fifo",
]
categories = [
"data-structures",
"concurrency",
]
license = "MIT"
repository = "https://github.com/Shopify/neocache"
[features]
rayon = ["dep:rayon"]
serde = ["dep:serde"]
[lib]
name = "neocache"
path = "src/lib.rs"
[[test]]
name = "concurrent"
path = "tests/concurrent.rs"
[[test]]
name = "coverage"
path = "tests/coverage.rs"
[[test]]
name = "loom"
path = "tests/loom.rs"
harness = true
[[bench]]
name = "throughput"
path = "benches/throughput.rs"
harness = false
[dependencies.ahash]
version = "0.8.12"
features = ["std"]
default-features = false
[dependencies.crossbeam-utils]
version = "0.8.21"
[dependencies.hashbrown]
version = "0.14.5"
features = ["raw"]
default-features = false
[dependencies.lock_api]
version = "0.4.12"
[dependencies.parking_lot_core]
version = "0.9.12"
[dependencies.rayon]
version = "1"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.rand]
version = "0.9.3"
[target."cfg(loom)".dev-dependencies.loom]
version = "0.7"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(loom)"]