forked from redis-rs/redis-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
94 lines (76 loc) · 2.48 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
[package]
name = "redis"
version = "0.15.2-alpha.0"
authors = ["Armin Ronacher <[email protected]>", "Jan-Erik Rediger <[email protected]>"]
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"
readme = "README.md"
edition = "2018"
[package.metadata.docs.rs]
all-features = true
[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.
dtoa = "0.4"
itoa = "0.4.3"
# 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 = { version = ">= 0.2, < 0.7", optional = true }
# Dependency that is shared with tokio. If we manage to make tokio optional we
# could also remove this.
bytes = "0.5"
# These are needed for parsing at the moment
combine = "3.8.1"
futures-util = { version = "0.3.0", features = ["sink"], default-features = false }
futures-executor = "0.3.0"
# Only needed for AIO
pin-project-lite = { version = "0.1", optional = true }
tokio-util = { version = "0.2", features = ["codec"], optional = true }
# Only needed for the r2d2 feature
r2d2 = { version = "0.8.8", optional = true }
# Only needed for cluster
crc16 = { version = "0.4.0", optional = true }
rand = { version = "0.7.0", optional = true }
# Unfortunately currently a necessary dependency
tokio = "0.2"
[features]
default = ["geospatial", "aio", "script"]
aio = ["pin-project-lite", "tokio/sync", "tokio/stream", "tokio/tcp", "tokio/uds", "tokio/io-util", "tokio-util"]
tokio-rt-core = ["aio", "tokio/rt-core"]
geospatial = []
cluster = ["crc16", "rand"]
script = ["sha1"]
[dev-dependencies]
rand = "0.7"
net2 = "0.2"
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 = "0.2", features = ["rt-core", "macros"] }
[[test]]
name = "test_async"
required-features = ["tokio-rt-core"]
[[test]]
name = "parser"
required-features = ["aio"]
[[bench]]
name = "bench_basic"
harness = false
required-features = ["tokio-rt-core"]
[[example]]
name = "async-multiplexed"
required-features = ["tokio-rt-core"]
[[example]]
name = "async-await"
required-features = ["aio"]