forked from redis-rs/redis-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
137 lines (111 loc) · 3.66 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
[package]
name = "mco-redis-rs"
version = "0.21.6"
authors = ["zhuxiujia@qq.com","Armin Ronacher <armin.ronacher@active-4.com>", "Jan-Erik Rediger <janerik@fnordig.de>"]
keywords = ["redis", "database"]
description = "Redis driver for Rust."
homepage = "https://github.com/mitsuhiko/redis-rs"
repository = "https://github.com/mitsuhiko/redis-rs"
documentation = "https://docs.rs/redis"
license = "BSD-3-Clause"
edition = "2018"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[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"
# This is a dependency that already exists in url
percent-encoding = "2.1"
# We need this for redis url parsing
url = "2.1"
# 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"], optional = true }
# Only needed for the connection manager
arc-swap = { version = "1.1.0", optional = true }
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.8", optional = true }
# Only needed for async_std support
async-std = { version = "1.5.0", optional = true}
async-trait = "0.1.24"
# Only needed for TLS
native-tls = { version = "0.2", optional = true }
tokio-native-tls = { version = "0.3", optional = true }
async-native-tls = { version = "0.4", optional = true }
mco = {version = "0.1", optional = true}
[features]
default = ["mco","acl", "streams", "geospatial", "script"]
acl = []
aio = ["bytes", "pin-project-lite", "futures-util", "futures-util/alloc", "futures-util/sink", "tokio/io-util", "tokio-util", "tokio-util/codec", "tokio/sync", "combine/tokio"]
geospatial = []
cluster = ["crc16", "rand"]
script = ["sha1_smol"]
tls = ["native-tls"]
async-std-comp = ["aio", "async-std"]
async-std-tls-comp = ["async-std-comp", "async-native-tls", "tls"]
tokio-comp = ["aio", "tokio", "tokio/net"]
tokio-native-tls-comp = ["tls", "tokio-native-tls"]
connection-manager = ["arc-swap", "futures", "aio"]
streams = []
[dev-dependencies]
rand = "0.8"
socket2 = "0.3"
assert_approx_eq = "1.0"
fnv = "1.0.5"
futures = "0.3"
criterion = "0.3"
partial-io = { version = "0.3", features = ["tokio", "quickcheck"] }
quickcheck = "0.6"
tokio = { version = "1", features = ["rt", "macros", "rt-multi-thread", "time"] }
tempfile = "3.2"
[[test]]
name = "test_async"
required-features = ["tokio-comp"]
[[test]]
name = "test_async_async_std"
required-features = ["async-std-comp"]
[[test]]
name = "parser"
required-features = ["aio"]
[[test]]
name = "test_acl"
[[bench]]
name = "bench_basic"
harness = false
required-features = ["tokio-comp"]
[[bench]]
name = "bench_cluster"
harness = false
required-features = ["cluster"]
[[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"]