-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCargo.toml
71 lines (59 loc) · 1.66 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
[package]
name = "walle-core"
version = "0.8.0-a1"
edition = "2021"
license = "MIT"
description = "OneBot lib in Rust"
authors = ["Abrahum<[email protected]>"]
homepage = "https://github.com/onebot-walle/Walle-core"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[features]
http = ["hyper", "hyper-util", "http-body-util"]
websocket = ["tokio-tungstenite"]
app-obc = ["sha2", "tokio/fs", "tokio/io-util"]
impl-obc = ["uuid"]
alt = []
full = ["http", "websocket", "app-obc", "impl-obc", "alt"]
tokio-rt = ["tokio/rt-multi-thread"]
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
rmp-serde = "1.0"
tracing = "0.1"
colored = "2"
uuid = { version = "1.0", optional = true }
tokio = { version = "1.0", features = ["sync", "time", "macros", "rt"] }
tokio-tungstenite = { version = "0.24", optional = true }
futures-util = { version = "0.3", features = ["sink"] }
thiserror = "2.0.4"
sha2 = { version = "0.10", optional = true }
hyper = { version = "1.5", optional = true }
http-body-util = { version = "0.1", optional = true }
hyper-util = { version = "0.1", features = [
"tokio",
"server",
"client",
"http1",
"http2",
"client-legacy",
], optional = true }
# snake_cased = { version = "0.1", features = ["derive"] }
dashmap = "6.1"
base64 = "0.22"
hex = "0.4"
[dependencies.walle-macro]
# path = "./walle-macro"
version = "0.7.0-a2"
[dev-dependencies]
tracing-subscriber = "0.3"
toml = "0.8"
[[example]]
name = "impl_ws"
required-features = ["impl-obc", "websocket", "tokio-rt"]
[[example]]
name = "app_ws"
required-features = ["app-obc", "websocket", "tokio-rt"]
[workspace]
members = ["walle-macro"]