-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy pathCargo.toml
253 lines (209 loc) · 6.07 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
[package]
name = "redis"
version = "0.25.2"
keywords = ["redis", "database"]
description = "Redis driver for Rust."
homepage = "https://github.com/redis-rs/redis-rs"
repository = "https://github.com/redis-rs/redis-rs"
documentation = "https://docs.rs/redis"
license = "BSD-3-Clause"
edition = "2021"
rust-version = "1.67"
readme = "../README.md"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lib]
bench = false
[dependencies]
# These two are generally really common simple dependencies so it does not seem
# much of a point to optimize these, but these could in theory be removed for
# an indirection through std::Formatter.
ryu = "1.0"
itoa = "1.0"
# Strum is a set of macros and traits for working with enums and strings easier in Rust.
strum = "0.27"
strum_macros = "0.27"
# This is a dependency that already exists in url
percent-encoding = "2.1"
# We need this for redis url parsing
url = "2.5.4"
# We need this for script support
sha1_smol = { version = "1.0", optional = true }
combine = { version = "4.6", default-features = false, features = ["std"] }
# Only needed for AIO
bytes = { version = "1", optional = true }
futures-util = { version = "0.3.15", default-features = false, optional = true }
pin-project-lite = { version = "0.2", optional = true }
tokio-util = { version = "0.7", optional = true }
tokio = { version = "1", features = ["rt", "net", "time", "sync"] }
socket2 = { version = "0.5", features = ["all"], optional = true }
dispose = { version = "0.5.0", optional = true }
# Only needed for the connection manager
arc-swap = { version = "1.7.1" }
futures = { version = "0.3.3", optional = true }
# Only needed for the r2d2 feature
r2d2 = { version = "0.8.8", optional = true }
# Only needed for cluster
crc16 = { version = "0.4", optional = true }
rand = { version = "0.9", optional = true }
# Only needed for async cluster
dashmap = { version = "6.0", optional = true }
async-trait = { version = "0.1.24", optional = true }
# Only needed for tokio support
tokio-retry2 = { version = "0.5", features = ["jitter"], optional = true }
# Only needed for native tls
native-tls = { version = "0.2", optional = true }
tokio-native-tls = { version = "0.3", optional = true }
# Only needed for rustls
rustls = { version = "0.23.23", optional = true }
webpki-roots = { version = "0.26", optional = true }
rustls-native-certs = { version = "0.8", optional = true }
tokio-rustls = { version = "0.26", optional = true }
rustls-pemfile = { version = "2", optional = true }
rustls-pki-types = { version = "1", optional = true }
# Only needed for RedisJSON Support
serde = { version = "1.0.82", optional = true }
serde_json = { version = "1.0.82", optional = true }
# Only needed for bignum Support
rust_decimal = { version = "1.33.1", optional = true }
bigdecimal = { version = "0.4.2", optional = true }
num-bigint = "0.4.4"
# Optional aHash support
ahash = { version = "0.8.11", optional = true }
tracing = "0.1"
# Optional uuid support
uuid = { version = "1.6.1", optional = true }
telemetrylib = { path = "../../telemetry" }
lazy_static = "1"
[features]
default = [
"acl",
"streams",
"geospatial",
"script",
"keep-alive",
"tokio-comp",
"tokio-rustls-comp",
"connection-manager",
"cluster",
"cluster-async",
]
acl = []
aio = [
"bytes",
"pin-project-lite",
"futures-util",
"futures-util/alloc",
"futures-util/sink",
"tokio/io-util",
"tokio-util",
"tokio-util/codec",
"combine/tokio",
"async-trait",
"dispose",
]
geospatial = []
json = ["serde", "serde/derive", "serde_json"]
cluster = ["crc16", "rand"]
script = ["sha1_smol"]
tls-native-tls = ["native-tls"]
tls-rustls = [
"rustls",
"rustls-native-certs",
"rustls-pemfile",
"rustls-pki-types",
]
tls-rustls-insecure = ["tls-rustls"]
tls-rustls-webpki-roots = ["tls-rustls", "webpki-roots"]
tokio-comp = ["aio", "tokio/net", "tokio-retry2"]
tokio-native-tls-comp = ["tokio-comp", "tls-native-tls", "tokio-native-tls"]
tokio-rustls-comp = ["tokio-comp", "tls-rustls", "tokio-rustls"]
connection-manager = ["futures", "aio", "tokio-retry2"]
streams = []
cluster-async = ["cluster", "futures", "futures-util", "dashmap"]
keep-alive = ["socket2"]
sentinel = ["rand"]
tcp_nodelay = []
rust_decimal = ["dep:rust_decimal"]
bigdecimal = ["dep:bigdecimal"]
num-bigint = []
uuid = ["dep:uuid"]
disable-client-setinfo = []
# Deprecated features
tls = ["tls-native-tls"] # use "tls-native-tls" instead
[dev-dependencies]
rand = "0.9"
socket2 = "0.5"
assert_approx_eq = "1.0"
fnv = "1.0.5"
futures = "0.3"
futures-time = "3"
criterion = "0.5"
partial-io = { version = "0.5", features = ["tokio", "quickcheck1"] }
quickcheck = "1.0.3"
tokio = { version = "1", features = [
"rt",
"macros",
"rt-multi-thread",
"time",
] }
tempfile = "3.17"
once_cell = "1"
anyhow = "1"
sscanf = "0.4.1"
serial_test = "^3"
versions = "7"
which = "7"
tracing-subscriber = { version = "0.3", features = ["fmt", "env-filter"] }
[[test]]
name = "test_async"
required-features = ["tokio-comp"]
[[test]]
name = "parser"
required-features = ["aio"]
[[test]]
name = "test_acl"
[[test]]
name = "test_module_json"
required-features = ["json", "serde/derive"]
[[test]]
name = "test_cluster_async"
required-features = ["cluster-async", "tokio-comp"]
[[test]]
name = "test_async_cluster_connections_logic"
required-features = ["cluster-async"]
[[test]]
name = "test_bignum"
[[bench]]
name = "bench_basic"
harness = false
required-features = ["tokio-comp"]
[[bench]]
name = "bench_cluster"
harness = false
required-features = ["cluster"]
[[bench]]
name = "bench_cluster_async"
harness = false
required-features = ["cluster-async", "tokio-comp"]
[[example]]
name = "async-multiplexed"
required-features = ["tokio-comp"]
[[example]]
name = "async-await"
required-features = ["aio"]
[[example]]
name = "async-pub-sub"
required-features = ["aio"]
[[example]]
name = "async-scan"
required-features = ["aio"]
[[example]]
name = "async-connection-loss"
required-features = ["connection-manager"]
[[example]]
name = "streams"
required-features = ["streams"]
[package.metadata.cargo-machete]
ignored = ["strum"]