210 lines
3.7 KiB
TOML
210 lines
3.7 KiB
TOML
# 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.71.1"
|
|
name = "moka"
|
|
version = "0.12.15"
|
|
build = false
|
|
exclude = [
|
|
".ci_extras/",
|
|
".codecov.yml",
|
|
".devcontainer",
|
|
".github",
|
|
".gitignore",
|
|
".gitpod.yml",
|
|
".markdownlint.json",
|
|
".vscode",
|
|
"CHANGELOG.md",
|
|
"examples",
|
|
"MIGRATION-GUIDE.md",
|
|
"tests/compile_tests/",
|
|
]
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
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) AND Apache-2.0"
|
|
repository = "https://github.com/moka-rs/moka"
|
|
|
|
[package.metadata.docs.rs]
|
|
features = [
|
|
"future",
|
|
"sync",
|
|
]
|
|
rustdoc-args = [
|
|
"--cfg",
|
|
"docsrs",
|
|
]
|
|
|
|
[features]
|
|
atomic64 = []
|
|
default = []
|
|
future = [
|
|
"dep:async-lock",
|
|
"dep:event-listener",
|
|
"dep:futures-util",
|
|
]
|
|
logging = ["dep:log"]
|
|
quanta = ["dep:quanta"]
|
|
sync = []
|
|
unstable-debug-counters = ["future"]
|
|
|
|
[lib]
|
|
name = "moka"
|
|
path = "src/lib.rs"
|
|
|
|
[[test]]
|
|
name = "and_compute_with_race"
|
|
path = "tests/and_compute_with_race.rs"
|
|
|
|
[[test]]
|
|
name = "entry_api_actix_rt2"
|
|
path = "tests/entry_api_actix_rt2.rs"
|
|
|
|
[[test]]
|
|
name = "entry_api_sync"
|
|
path = "tests/entry_api_sync.rs"
|
|
|
|
[[test]]
|
|
name = "entry_api_tokio"
|
|
path = "tests/entry_api_tokio.rs"
|
|
|
|
[[test]]
|
|
name = "runtime_actix_rt2"
|
|
path = "tests/runtime_actix_rt2.rs"
|
|
|
|
[[test]]
|
|
name = "runtime_tokio"
|
|
path = "tests/runtime_tokio.rs"
|
|
|
|
[[test]]
|
|
name = "timer_wheel_panic_test"
|
|
path = "tests/timer_wheel_panic_test.rs"
|
|
|
|
[dependencies.async-lock]
|
|
version = "3.3"
|
|
optional = true
|
|
|
|
[dependencies.crossbeam-channel]
|
|
version = "0.5.15"
|
|
|
|
[dependencies.crossbeam-epoch]
|
|
version = "0.9.18"
|
|
|
|
[dependencies.crossbeam-utils]
|
|
version = "0.8.21"
|
|
|
|
[dependencies.equivalent]
|
|
version = "1.0"
|
|
|
|
[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.parking_lot]
|
|
version = "0.12"
|
|
|
|
[dependencies.portable-atomic]
|
|
version = "1.6"
|
|
|
|
[dependencies.quanta]
|
|
version = "0.12.2"
|
|
optional = true
|
|
|
|
[dependencies.smallvec]
|
|
version = "1.8"
|
|
|
|
[dependencies.tagptr]
|
|
version = "0.2"
|
|
|
|
[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.env_logger]
|
|
version = "0.10.0"
|
|
|
|
[dev-dependencies.getrandom]
|
|
version = "0.2"
|
|
|
|
[dev-dependencies.once_cell]
|
|
version = "1.7"
|
|
|
|
[dev-dependencies.rand]
|
|
version = "0.8.5"
|
|
|
|
[dev-dependencies.reqwest]
|
|
version = "0.12"
|
|
features = ["rustls-tls"]
|
|
default-features = false
|
|
|
|
[dev-dependencies.tokio]
|
|
version = "1.19"
|
|
features = [
|
|
"fs",
|
|
"io-util",
|
|
"macros",
|
|
"rt-multi-thread",
|
|
"sync",
|
|
"time",
|
|
]
|
|
|
|
[target."cfg(moka_loom)".dev-dependencies.loom]
|
|
version = "0.7"
|
|
|
|
[target."cfg(trybuild)".dev-dependencies.trybuild]
|
|
version = "1.0"
|
|
|
|
[lints.rust.unexpected_cfgs]
|
|
level = "warn"
|
|
priority = 0
|
|
check-cfg = [
|
|
"cfg(armv5te)",
|
|
"cfg(beta_clippy)",
|
|
"cfg(kani)",
|
|
"cfg(moka_loom)",
|
|
"cfg(mips)",
|
|
"cfg(run_flaky_tests)",
|
|
"cfg(skip_large_mem_tests)",
|
|
"cfg(trybuild)",
|
|
]
|