forked from serenity-rs/serenity
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
192 lines (161 loc) · 4.43 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
[package]
authors = ["Alex M. M. <[email protected]>"]
description = "A Rust library for the Discord API."
documentation = "https://docs.rs/serenity"
edition = "2018"
homepage = "https://github.com/serenity-rs/serenity"
include = ["src/**/*", "LICENSE.md", "README.md", "CHANGELOG.md", "build.rs"]
keywords = ["discord", "api"]
license = "ISC"
name = "serenity"
readme = "README.md"
repository = "https://github.com/nxg-org/serenity.git"
version = "0.10.10"
[workspace]
members = ["examples/*"]
[dependencies]
async-trait = "0.1.9"
bitflags = "1.1"
randua = {version = "0.1.6", optional = true}
serde_json = "1"
hex = "0.4.3"
rand = "0.8.5"
once_cell = "1.10.0"
[dependencies.tracing]
features = ["log"]
version = "0.1.23"
[dependencies.command_attr]
optional = true
path = "./command_attr"
version = "0.3.8"
[dependencies.serde]
features = ["derive"]
version = "1.0.103"
[dependencies.uwl]
optional = true
version = "0.6.0"
[dependencies.base64]
optional = true
version = "0.13"
[dependencies.chrono]
default-features = false
features = ["clock", "serde"]
version = "0.4.10"
[dependencies.flate2]
optional = true
version = "1.0.13"
[dependencies.reqwest]
default-features = false
features = ["json", "multipart", "stream"]
optional = true
version = "0.11"
# Tokio v0.2
[dependencies.reqwest_compat]
default-features = false
features = ["json", "stream"]
optional = true
package = "reqwest"
version = "0.10"
[dependencies.serenity-voice-model]
path = "./voice-model"
optional = true
[dependencies.static_assertions]
optional = true
version = "1.1"
[dependencies.async-tungstenite]
default-features = false
features = ["tokio-runtime"]
optional = true
version = "0.11"
# Tokio v0.2
[dependencies.async-tungstenite_compat]
default-features = false
features = ["tokio-runtime"]
optional = true
package = "async-tungstenite"
version = "0.9.2"
[dependencies.typemap_rev]
optional = true
version = "0.1.3"
[dependencies.url]
optional = true
version = "^2.1"
[dependencies.bytes]
optional = true
version = "1.0"
[dependencies.bytes_compat]
optional = true
package = "bytes"
version = "0.5"
[dependencies.tokio]
default-features = true
features = ["fs", "macros", "rt", "sync", "time"]
optional = true
version = "1"
# Tokio v0.2
[dependencies.tokio_compat]
default-features = true
features = ["fs", "macros", "rt-core", "sync", "time", "stream"]
optional = true
package = "tokio"
version = "0.2"
[dependencies.futures]
default-features = false
features = ["std"]
version = "0.3"
[dependencies.percent-encoding]
version = "2.1"
[dependencies.http_crate]
package = "http"
version = "0.2"
[dev-dependencies.tokio-test]
version = "0.4"
[features]
# Defaults with different backends
default = ["default_no_backend", "rustls_backend"]
default_native_tls = ["default_no_backend", "native_tls_backend"]
default_native_tls_tokio_0_2 = ["default_no_backend", "native_tls_tokio_0_2_backend"]
default_tokio_0_2 = ["default_no_backend", "rustls_tokio_0_2_backend"]
# Serenity requires a backend, this picks all default features without a backend.
default_no_backend = ["builder", "cache", "client", "framework", "gateway", "model", "http", "standard_framework", "utils"]
absolute_ratelimits = ["http"]
builder = ["utils"]
cache = []
client = ["http", "typemap_rev"]
collector = ["gateway", "model"]
extras = []
framework = ["client", "model", "utils"]
gateway = ["flate2", "http", "url", "utils"]
http = ["url"]
model = ["builder", "http"]
standard_framework = ["framework", "uwl", "command_attr", "static_assertions"]
unstable_discord_api = []
utils = ["base64"]
voice = ["client", "model"]
voice-model = ["serenity-voice-model"]
# Backends to pick from:
# - Rustls Backends
rustls_backend = ["reqwest/rustls-tls", "async-tungstenite/tokio-rustls", "tokio", "rustls_backend_marker", "bytes"]
rustls_tokio_0_2_backend = [
"reqwest_compat/rustls-tls",
"async-tungstenite_compat/tokio-rustls",
"tokio_compat",
"bytes_compat",
"rustls_backend_marker",
]
# Marks that a Rustls backend is active
rustls_backend_marker = []
# - Native TLS Backends
native_tls_backend = ["reqwest/native-tls", "async-tungstenite/tokio-native-tls", "tokio", "bytes", "native_tls_backend_marker"]
native_tls_tokio_0_2_backend = [
"reqwest_compat/native-tls",
"async-tungstenite_compat/tokio-native-tls",
"tokio_compat",
"bytes_compat",
"native_tls_backend_marker",
]
# Marks that a Native TLS backend is active
native_tls_backend_marker = []
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]