-
-
Notifications
You must be signed in to change notification settings - Fork 62
/
Cargo.toml
63 lines (53 loc) · 1.88 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[package]
name = "moka"
version = "0.5.2"
authors = ["Tatsuya Kawano <tatsuya@hibaridb.org>"]
edition = "2018"
description = "A fast and concurrent cache library inspired by Caffeine (Java) and Ristretto (Go)"
license = "MIT OR Apache-2.0"
# homepage = "https://"
documentation = "https://docs.rs/moka/"
repository = "https://github.com/moka-rs/moka"
keywords = ["cache", "concurrent"]
categories = ["caching", "concurrency"]
readme = "README.md"
exclude = [".devcontainer", ".github", ".vscode"]
build = "build.rs"
# https://docs.rs/about/metadata
[package.metadata.docs.rs]
features = ["future"]
[features]
default = ["atomic64"]
# Enable this feature to use `moka::future::Cache`.
future = ["async-io", "async-lock"]
# This feature is enabled by default. Disable it when the target platform does not
# support `std::sync::atomic::AtomicU64`. (e.g. `armv5te-unknown-linux-musleabi`
# or `mips-unknown-linux-musl`)
# https://github.com/moka-rs/moka#resolving-compile-errors-on-some-32-bit-platforms
atomic64 = ["quanta"]
[dependencies]
crossbeam-channel = "0.5"
moka-cht = "0.4.2"
num_cpus = "1.13"
once_cell = "1.7"
parking_lot = "0.11"
scheduled-thread-pool = "0.2"
thiserror = "1.0"
uuid = { version = "0.8", features = ["v4"] }
# Optional dependencies
async-io = { version = "1.4", optional = true }
async-lock = { version = "2.4", optional = true }
quanta = { version = "0.9", optional = true }
[dev-dependencies]
actix-rt2 = { package = "actix-rt", version = "2", default-features = false }
actix-rt1 = { package = "actix-rt", version = "1", default-features = false }
async-std = { version = "1", default-features = false, features = ["attributes"] }
futures = "0.3"
getrandom = "0.2"
reqwest = "0.11"
skeptic = "0.13"
tokio = { version = "1", features = ["rt-multi-thread", "macros" ] }
[target.'cfg(trybuild)'.dev-dependencies]
trybuild = "1.0"
[target.'cfg(skeptic)'.build-dependencies]
skeptic = "0.13"