-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
91 lines (72 loc) · 1.7 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
[package]
name = "burz"
version = "0.1.0"
authors = ["7sDream <i@7sdre.am>"]
edition = "2021"
description = "Kaiheila bot framework"
documentation = "https://docs.rs/burz"
readme = "README.md"
homepage = "https://github.com/7sDream/burz"
repository = "https://github.com/7sDream/burz"
license-file = "LICENSE"
keywords = ["async", "bot", "kaiheila"]
categories = ["api-bindings", "asynchronous", "network-programming"]
publish = false
# ===== dependencies =====
# for error handling
[dependencies.snafu]
version = "0.7"
# for enum functional auto generate
[dependencies.enum-as-inner]
version = "0.5"
# for http(s) request
[dependencies.reqwest]
version = "0.11"
features = ["gzip", "deflate"]
# for buffer operation
[dependencies.bytes]
version = "1"
# for ser/de message/event type
[dependencies.serde]
version = "1"
features = ["derive"]
# for parse json
[dependencies.serde_json]
version = "1"
# for parse and construct gateway url
[dependencies.url]
version = "2"
# for async networking
[dependencies.tokio]
version = "1"
default_features = false
features = [
"macros", # for select
"time", # for timeout control
"sync", # for channels
]
# for async stream/sink
[dependencies.futures-util]
version = "0.3"
features = ["sink"]
# for websocket protocol
[dependencies.tokio-tungstenite]
version = "0.17"
features = ["rustls-tls-native-roots"]
# for decompress compressed message
[dependencies.miniz_oxide]
version = "0.5"
features = ["simd"]
[dependencies.log]
version = "0.4"
[dependencies.async-trait]
version = "0.1"
# ===== Dev Dependencies =====
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[dev-dependencies.pretty_env_logger]
version = "0.4"
# ===== Examples =====
[[example]]
name = "bot"