-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
42 lines (36 loc) · 1.1 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
[package]
name = "autocache"
version = "0.2.1"
edition = "2021"
license = "MIT"
repository = "https://github.com/Yanhao/autocache.git"
description = "automatic cache management"
keywords = ["cache"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
thiserror = "1"
anyhow = "1"
arc-swap = "1"
derivative = "2"
tokio = { version = "1", features = ["full"] }
chrono = "0.4"
parking_lot = "0.12"
async_singleflight = "0.5"
futures = "0.3"
tracing = "0.1"
bytes = { version = "1", optional = true }
serde_json = { version = "1", optional = true }
serde = { version = "1", features = ["derive"], optional = true }
im = { version = "15", optional = true }
moka = { version = "0.12", features = ["sync"], optional = true }
redis = { version = "0.26", features = ["tokio-comp"], optional = true }
[dev-dependencies]
once_cell = "1"
tracing-subscriber = "0.3"
[features]
default = ["localcache"]
serilize = ["dep:serde", "dep:serde_json", "dep:bytes"]
localcache = ["dep:moka"]
ttlcache = ["dep:im"]
rediscache = ["serilize", "dep:redis"]
twolevelcache = ["serilize"]