-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathCargo.toml
77 lines (68 loc) · 1.82 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
[package]
authors = ["Alec Embke <[email protected]>"]
description = "An implementation of the RESP2 and RESP3 protocols."
homepage = "https://github.com/aembke/redis-protocol.rs"
keywords = ["redis", "protocol", "RESP", "no_std"]
license = "MIT"
name = "redis-protocol"
readme = "README.md"
repository = "https://github.com/aembke/redis-protocol.rs"
version = "6.0.0"
edition = "2021"
exclude = ["fuzz", ".circleci", "benches"]
[package.metadata.docs.rs]
features = [
"bytes",
"std",
"codec",
"convert",
"resp2",
"resp3"
]
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
bytes = { version = "1.1", default-features = false, optional = true }
bytes-utils = { version = "0.1", default-features = false, optional = true }
cookie-factory = { version = "=0.3.2", default-features = false }
crc16 = { version = "0.4" }
indexmap = { version = "2.2", optional = true }
log = "0.4"
nom = { version = "7.1", default-features = false }
libm = { version = "0.2", optional = true }
hashbrown = { version = "0.14", optional = true }
tokio-util = { version = "0.7", features = ["codec"], optional = true }
[dev-dependencies]
rand = "0.8"
tokio = { version = "1.36", features = ["full"] }
pretty_env_logger = "0.5"
futures = "0.3"
itertools = "0.12"
criterion = { version = "0.4", features = ["html_reports"] }
[features]
default = ["std", "resp2", "resp3"]
resp2 = []
resp3 = []
index-map = ["indexmap"]
bytes = ["dep:bytes", "bytes-utils"]
decode-logs = []
alloc = ["nom/alloc"]
std = ["cookie-factory/default", "nom/default"]
codec = ["tokio-util", "bytes"]
convert = []
[lib]
doc = true
doctest = true
name = "redis_protocol"
test = true
#[[bench]]
#name = "resp2_decode"
#harness = false
#[[bench]]
#name = "resp2_encode"
#harness = false
#[[bench]]
#name = "resp3_encode"
#harness = false
#[[bench]]
#name = "resp3_decode"
#harness = false