forked from mrxiaozhuox/dorea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
executable file
·112 lines (88 loc) · 2.17 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
[package]
name = "dorea"
version = "0.4.0"
description = "A key-value stroage system"
repository = "https://github.com/mrxiaozhuox/Dorea/"
authors = ["ZhuoEr Liu <[email protected]>"]
edition = "2018"
license = "MIT"
keywords = ["database","cache","storage"]
exclude = [
".DS_Store",
".idea/*",
".vscode/*",
"Dockerfile"
]
[[bin]]
name = "dorea-cli"
path = "src/bin/cli.rs"
required-features = ["client"]
[[bin]]
name = "dorea-server"
path = "src/bin/server.rs"
required-features = ["server"]
[features]
# default features: all feature.
default = ["client", "server"]
# include all features
full = ["server", "client"]
# server features: just run for server.
server = [
"processor",
"axum",
"http",
"headers",
"hyper",
"tower",
"jsonwebtoken",
"mlua",
"log4rs"
]
# client features: client manager tools.
client = ["processor"]
# processor feature: include [value, network] to io data and fmt it.
processor = []
[dependencies]
tokio = { version = "1.6.1", features = ['full'] }
anyhow = "1.0.42"
futures = "0.3.16"
# Command
rustyline = "8.2.0"
# Bytes Tool
bytes = "1.0.1"
# Parsing Tool
nom = "7.0.0"
clap = "2.33.3"
# Lazy Static
once_cell = "1.8.0"
# Directory Manager
dirs = "3.0.2"
walkdir = "2.3.2"
# Time & Date Manager
chrono = "0.4.19"
# Serialize & Deserialize
serde = { version = "1.0.126", features = ['derive'] }
serde_json = "1.0.64"
toml = "0.5.8"
base64 = "0.13.0"
md5 = "0.7.0"
crc = "2.0.0"
uuid = { version = "0.8", features = ["v4"] }
# Logger Library
log = "0.4.14"
log4rs = { version = "1.0.0", optional = true }
# Web Service [Dorea-Web tool]
axum = { version = "0.4.8", optional = true, features = ["multipart", "headers", "ws"] }
http = { version = "0.2.4", optional = true }
headers = { version = "0.3.4", optional = true }
hyper = { version = "0.14.11", optional = true, features = ["full"] }
tower = { version = "0.4.8", optional = true, features = ["timeout"] }
jsonwebtoken = { version = "7.2.0", optional = true }
# Lua Tool
mlua = { version = "0.6", features = ["lua54", "vendored", "async", "send", "serialize"], optional = true }
# Doson Parser
doson = "0.1.5"
# Tools
rand = "0.8"
# Ctrl-C signal
ctrlc = "3.2.1"