-
Notifications
You must be signed in to change notification settings - Fork 110
/
Cargo.toml
135 lines (117 loc) · 2.85 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
[package]
name = "rnacos"
version = "0.6.8"
authors = ["heqingpan <[email protected]>"]
edition = "2018"
license = "Apache-2.0"
description = "Nacos server re-implemented in Rust."
homepage = "https://github.com/heqingpan/rnacos"
repository = "https://github.com/heqingpan/rnacos"
documentation = "https://docs.rs/rnacos/latest"
readme = "README.md"
keywords = ["nacos", "rnacos", "registry", "config"]
exclude = [
".github/*",
"book/*",
"deploy/*",
"doc/*",
"docker/*",
"proto/*",
"tools/*",
"sdk-examples/*",
"CHANGELOG.md",
"Dockerfile",
"test_cluster.sh",
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[workspace]
members = [
".",
"loadtest",
]
[[bin]]
name = "rnacos"
path = "src/main.rs"
[dependencies]
mimalloc = { version = "0.1", features = ["secure"] }
serde = { version = "1", features = ["derive", "rc"] }
serde_json = "1"
serde_urlencoded = "0.7"
actix-web = "4"
actix-http = "3"
actix = "0.13"
actix-rt = "2"
actix-multipart = "0.6"
actix-multipart-derive = "0.6"
parse-size = "=1.0.0"
log = "0.4"
env_logger = "0.11"
env_logger_timezone_fmt = "0.1.1"
rust-crypto = "0.2"
tokio = { version = "1", features = ["full"] }
tokio-stream = "0.1"
chrono = { version = "0.4", features = ["serde"] }
flate2 = "1.0"
tonic = "0.4"
async-trait = "0.1"
anyhow = "1"
mime = "0.3"
lazy_static = "1.4"
dotenv = "0.15"
#rust-embed="6.6.1"
mime_guess = { version = "2" }
# db
rusqlite = { version = "0.25", features = ["bundled"] }
rsql_builder = "0.1.5"
inner-mem-cache = "0.1.7"
rnacos-web-dist-wrap = "=0.5.7"
nacos_rust_client = "0.3.2"
zip = "0.6"
tempfile = "3"
# sled db
sled = "0.34"
# protobuf serde
prost = "0.7"
prost-derive = "0.7"
prost-types = "0.7"
# bytes
bytes = "1"
byteorder = "1.4"
tracing = "0.1.29"
tracing-subscriber = { version = "0.3.0", features = ["env-filter"] }
# reqwest = { version = "0.11", features = ["json"], default-features = false }
async-raft-ext = "0.6.3"
thiserror = "1.0.20"
clap = { version = "4.5", features = ["derive"] }
#inject
bean_factory = "0.1.4"
futures-util = "0.3.29"
regex = "1"
captcha = "0.0.9"
ratelimiter-rs = "0.1.5"
base64 = "0.21.5"
aes = "0.8"
block-modes = "0.8"
cbc = "0.1.2"
quick-protobuf = "0.8.1"
binrw = "0.13.3"
binrw_derive = "0.13.3"
sysinfo = "0.30.12"
bcrypt = "0.15"
[target.'cfg(any(target_os = "linux", target_os = "macos", target_os="windows"))'.dependencies]
fs2 = "0.4.3"
dirs = "5.0"
bitflags = "2.6.0"
sqlx = { version = "0.6", features = ["runtime-tokio-rustls","mysql"] }
[dependencies.uuid]
version = "1.2.1"
features = [
"v4", # Lets you generate random UUIDs
"fast-rng", # Use a faster (but still sufficiently random) RNG
"macro-diagnostics", # Enable better diagnostics for compile-time UUIDs
]
[build-dependencies]
[profile.release]
#opt-level = 3
#strip = true
#lto = true