-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
59 lines (51 loc) · 1.67 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
[package]
name = "iot-server-template"
version = "0.1.0"
edition = "2021"
authors = ["[email protected]"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[workspace]
members = [
"crates/egccri-future-util",
"crates/common/pool",
]
[dependencies]
egccri-future-util = { path = "crates/egccri-future-util" }
pool = { path = "crates/common/pool" }
clap = { version = "4.0.15", features = ["color", "suggestions", "derive"] }
thiserror = "1.0.37"
anyhow = "1.0.65"
tokio = { workspace = true }
tokio-util = { workspace = true }
bytes = "1.2.1"
futures-util = "0.3.24"
futures = "0.3.18"
serde = { version = "1.0.145", features = ["derive"] }
serde_json = { version = "1" }
once_cell = "1.15.0"
async-trait = "0.1.68"
chrono = "0.4.22"
time = "0.3.15"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["local-time"] }
console-subscriber = { version = "0.1.8", optional = true }
tracing-appender = "0.2"
config = { version = "0.13.2", features = ["toml"] }
openraft = { git = "https://github.com/datafuselabs/openraft", rev = "98b2606b6bdc1519781833efe226ff3bc3b5114b", features = ["serde"], optional = true }
tonic = { version = "0.9.2", optional = true }
prost = "0.11.9"
[build-dependencies]
tonic-build = "0.9.2"
[workspace.package]
version = "0.0.0"
authors = ["zifeng <[email protected]>"]
edition = "2021"
[workspace.dependencies]
tokio = { version = "1", features = ["full"] }
tokio-util = { version = "0.7.4", features = ["codec", "time"] }
[features]
default = ["raft-store"]
console = ["tokio-tracking", "dep:console-subscriber"]
tokio-tracking = ["tokio/tracing"]
raft-store = ["dep:openraft", "dep:tonic"]
redis = []