# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.65" name = "moka" version = "0.12.8" build = "build.rs" exclude = [ ".circleci", ".cirrus.yml", ".devcontainer", ".github", ".gitpod.yml", ".vscode", ] description = "A fast and concurrent cache library inspired by Java Caffeine" documentation = "https://docs.rs/moka/" readme = "README.md" keywords = [ "cache", "concurrent", ] categories = [ "caching", "concurrency", ] license = "MIT OR Apache-2.0" repository = "https://github.com/moka-rs/moka" [package.metadata.docs.rs] features = [ "future", "sync", ] rustdoc-args = [ "--cfg", "docsrs", ] [[example]] name = "append_value_async" required-features = ["future"] [[example]] name = "append_value_sync" required-features = ["sync"] [[example]] name = "basics_async" required-features = ["future"] [[example]] name = "basics_sync" required-features = ["sync"] [[example]] name = "bounded_counter_async" required-features = ["future"] [[example]] name = "bounded_counter_sync" required-features = ["sync"] [[example]] name = "cascading_drop_async" required-features = ["future"] [[example]] name = "counter_async" required-features = ["future"] [[example]] name = "counter_sync" required-features = ["sync"] [[example]] name = "eviction_listener_sync" required-features = ["sync"] [[example]] name = "reinsert_expired_entries_sync" required-features = ["sync"] [[example]] name = "size_aware_eviction_sync" required-features = ["sync"] [[example]] name = "try_append_value_async" required-features = ["future"] [[example]] name = "try_append_value_sync" required-features = ["sync"] [dependencies.async-lock] version = "3.3" optional = true [dependencies.async-trait] version = "0.1.58" optional = true [dependencies.crossbeam-channel] version = "0.5.5" [dependencies.crossbeam-epoch] version = "0.9.9" [dependencies.crossbeam-utils] version = "0.8" [dependencies.event-listener] version = "5.3" optional = true [dependencies.futures-util] version = "0.3.17" optional = true [dependencies.log] version = "0.4" optional = true [dependencies.once_cell] version = "1.7" [dependencies.parking_lot] version = "0.12" [dependencies.quanta] version = "0.12.2" optional = true [dependencies.smallvec] version = "1.8" [dependencies.tagptr] version = "0.2" [dependencies.thiserror] version = "1.0" [dependencies.triomphe] version = ">=0.1.3, <0.1.12" default-features = false [dependencies.uuid] version = "1.1" features = ["v4"] [dev-dependencies.actix-rt] version = "2.8" [dev-dependencies.ahash] version = "0.8.3" [dev-dependencies.anyhow] version = "1.0.19" [dev-dependencies.async-std] version = "1.12" features = ["attributes"] [dev-dependencies.env_logger] version = "0.10.0" [dev-dependencies.getrandom] version = "0.2" [dev-dependencies.paste] version = "1.0.9" [dev-dependencies.reqwest] version = "0.11.11" features = ["rustls-tls"] default-features = false [dev-dependencies.tokio] version = "1.19" features = [ "fs", "io-util", "macros", "rt-multi-thread", "sync", "time", ] [features] atomic64 = [] default = [ "atomic64", "quanta", ] future = [ "async-lock", "async-trait", "event-listener", "futures-util", ] logging = ["log"] sync = [] unstable-debug-counters = ["future"] [target."cfg(rustver)".build-dependencies.rustc_version] version = "0.4.0" [target."cfg(trybuild)".dev-dependencies.trybuild] version = "1.0"