This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
80 lines (69 loc) · 2.03 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
[package]
name = "wsvc"
version = "0.1.9"
edition = "2021"
authors = ["Reverier-Xu <reverier.xu@woooo.tech>"]
description = "WebSocket Simple Version Control tool."
homepage = "https://github.com/ret2shell/wsvc"
documentation = "https://docs.rs/wsvc"
repository = "https://github.com/ret2shell/wsvc"
readme = "README.md"
license = "MPL-2.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "wsvc"
required-features = ["cli"]
[dependencies]
tokio = { version = "1.34", features = ["full"] }
tokio-util = { version = "0.7", features = ["io"] }
tokio-stream = "0.1"
bytes = "1.5"
futures = "0.3"
async-trait = "0.1"
serde = { version = "1.0", features = ["derive"] }
serde_repr = "0.1"
serde_json = "1.0"
chrono = { version = "0.4", features = ["serde"] }
thiserror = "1.0"
anyhow = "1.0"
miniz_oxide = "0.7"
nanoid = "0.4"
blake3 = "1.5"
async-recursion = "1.0"
toml = "0.8"
# cli dependencies
once_cell = { version = "1.18", optional = true }
clap = { version = "4.4", features = ["derive"], optional = true }
colored = { version = "2.0", optional = true }
dirs = { version = "5.0", optional = true }
merge ={ version = "0.1", optional = true }
indicatif = { version = "0.17", optional = true, features = ["tokio"]}
# server dependencies
axum = { version = "0.6", features = [
"headers",
"ws",
"http2",
"multipart",
"macros",
], optional = true }
hyper = { version = "0.14", features = ["full"], optional = true }
tower = { version = "0.4", optional = true }
tower-http = { version = "0.4", features = ["trace"], optional = true }
tracing = { version = "0.1", optional = true }
# both cli & server
tokio-tungstenite = { version = "0.20", features = [
"rustls-tls-native-roots",
], optional = true }
[features]
default = ["all"]
cli = [
"dep:once_cell",
"dep:clap",
"dep:tokio-tungstenite",
"dep:colored",
"dep:dirs",
"dep:merge",
"dep:indicatif",
]
server = ["dep:axum", "dep:hyper", "dep:tower", "dep:tower-http", "dep:tracing"]
all = ["cli", "server"]