[package]
name = "moka"
version = "0.10.4"
edition = "2018"
rust-version = "1.60"
description = "A fast and concurrent cache library inspired by Java Caffeine"
license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/moka/"
repository = "https://github.com/moka-rs/moka"
keywords = ["cache", "concurrent"]
categories = ["caching", "concurrency"]
readme = "README.md"
exclude = [".ci_extras", ".circleci", ".devcontainer", ".github", ".gitpod.yml", ".vscode"]
build = "build.rs"
[features]
default = ["sync", "atomic64", "quanta"]
sync = ["crossbeam-epoch", "thiserror", "uuid"]
future = ["crossbeam-epoch", "thiserror", "uuid", "async-io", "async-lock", "futures-util"]
dash = []
logging = ["log"]
atomic64 = []
js = ["uuid/js"]
unstable-debug-counters = ["future"]
[dependencies]
crossbeam-channel = "0.5.5"
crossbeam-utils = "0.8"
num_cpus = "1.13"
once_cell = "1.7"
parking_lot = "0.12"
scheduled-thread-pool = "0.2.7"
smallvec = "1.8"
tagptr = "0.2"
triomphe = { version = "0.1.3", default-features = false }
crossbeam-epoch = { version = "0.9.9", optional = true }
quanta = { version = "0.11.0", optional = true }
thiserror = { version = "1.0", optional = true }
uuid = { version = "1.1", features = ["v4"], optional = true }
async-io = { version = "1.4", optional = true }
async-lock = { version = "2.4", optional = true }
futures-util = { version = "0.3", optional = true }
log = { version = "0.4", optional = true }
[dev-dependencies]
actix-rt = { version = "2.7", default-features = false }
ahash = "0.8.3"
anyhow = "1.0.19"
async-std = { version = "1.11", features = ["attributes"] }
env_logger = "0.9"
getrandom = "0.2"
paste = "1.0.9"
reqwest = "0.11.11"
skeptic = "0.13"
tokio = { version = "1.19", features = ["fs", "macros", "rt-multi-thread", "sync", "time" ] }
[target.'cfg(trybuild)'.dev-dependencies]
trybuild = "1.0"
[target.'cfg(skeptic)'.build-dependencies]
skeptic = "0.13.5"
[target.'cfg(rustver)'.build-dependencies]
rustc_version = "0.4.0"
[package.metadata.docs.rs]
features = ["future"]
rustdoc-args = ["--cfg", "docsrs"]