forked from jaemk/cached
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
119 lines (95 loc) · 2.68 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
[package]
name = "cached"
version = "0.46.0"
authors = ["James Kominick <[email protected]>"]
description = "Generic cache implementations and simplified function memoization"
repository = "https://github.com/jaemk/cached"
documentation = "https://docs.rs/cached"
readme = "README.md"
categories = ["caching", "data-structures"]
keywords = ["caching", "cache", "memoize", "lru", "redis"]
license = "MIT"
edition = "2018"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = ["proc_macro", "ahash"]
proc_macro = ["cached_proc_macro", "cached_proc_macro_types"]
ahash = ["dep:ahash", "hashbrown/default"]
async = ["futures", "tokio", "async-trait"]
async_tokio_rt_multi_thread = ["async", "tokio/rt-multi-thread"]
redis_store = ["redis", "r2d2", "serde", "serde_json"]
redis_connection_manager = ["redis_store", "redis/connection-manager"]
redis_async_std = ["redis_store", "async", "redis/aio", "redis/async-std-comp", "redis/tls", "redis/async-std-tls-comp"]
redis_tokio = ["redis_store", "async", "redis/aio", "redis/tokio-comp", "redis/tls", "redis/tokio-native-tls-comp"]
redis_ahash = ["redis_store", "redis/ahash"]
wasm = ["instant/wasm-bindgen"]
[dependencies.cached_proc_macro]
version = "0.18.0"
path = "cached_proc_macro"
optional = true
[dependencies.cached_proc_macro_types]
version = "0.1.0"
path = "cached_proc_macro_types"
optional = true
[dependencies.hashbrown]
version = "0.14"
default-features = false
features = ["raw", "inline-more"]
[dependencies.once_cell]
version = "1"
[dependencies.thiserror]
version = "1"
[dependencies.ahash]
version = "0.8"
default-features = false
optional = true
[dependencies.futures]
version = "0.3"
default-features = false
optional = true
[dependencies.async-trait]
version = "0.1"
optional = true
[dependencies.redis]
version = "0.23"
features = ["r2d2"]
optional = true
[dependencies.r2d2]
version = "0.8"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1.0"
optional = true
[dependencies.tokio]
version = "1"
features = ["macros", "time", "sync", "parking_lot"]
optional = true
[dependencies.instant]
version = "0.1"
[dev-dependencies.async-std]
version = "1.6"
features = ["attributes"]
[dev-dependencies.smartstring]
version = "1"
[dev-dependencies.serial_test]
version = "2"
[workspace]
members = ["cached_proc_macro", "examples/wasm"]
[[example]]
name = "redis"
required-features = ["redis_store", "proc_macro"]
[[example]]
name = "redis-async"
required-features = ["async", "proc_macro"]
[[example]]
name = "tokio"
required-features = ["async", "proc_macro"]
[[example]]
name = "async_std"
required-features = ["async", "proc_macro"]