-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.toml
56 lines (46 loc) · 2.1 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
[package]
name = "topgg"
version = "1.4.2"
edition = "2021"
authors = ["null (https://github.com/null8626)", "Top.gg <[email protected]> (https://top.gg)"]
description = "The official Rust wrapper for the Top.gg API"
readme = "README.md"
repository = "https://github.com/Top-gg-Community/rust-sdk"
license = "MIT"
keywords = ["discord", "bot", "topgg"]
categories = ["api-bindings", "web-programming::http-client"]
exclude = [".gitattributes", ".github/", ".gitignore", "rustfmt.toml"]
[dependencies]
cfg-if = "1"
paste = { version = "1", optional = true }
reqwest = { version = "0.12", optional = true }
serde = { version = "1", features = ["derive"] }
tokio = { version = "1", features = ["rt", "sync", "time"], optional = true }
urlencoding = { version = "2", optional = true }
serenity = { version = "0.12", features = ["builder", "client", "gateway", "model", "utils"], optional = true }
twilight-model = { version = "0.15", optional = true }
twilight-cache-inmemory = { version = "0.15", optional = true }
chrono = { version = "0.4", default-features = false, optional = true, features = ["serde"] }
serde_json = { version = "1", optional = true }
rocket = { version = "0.5", default-features = false, features = ["json"], optional = true }
axum = { version = "0.7", default-features = false, optional = true, features = ["http1", "tokio"] }
async-trait = { version = "0.1", optional = true }
warp = { version = "0.3", default-features = false, optional = true }
actix-web = { version = "4", default-features = false, optional = true }
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
rustc-args = ["--cfg", "docsrs"]
[features]
default = ["api"]
api = ["chrono", "reqwest", "serde_json"]
autoposter = ["api", "tokio"]
serenity = ["dep:serenity", "paste"]
serenity-cached = ["serenity", "serenity/cache"]
twilight = ["twilight-model"]
twilight-cached = ["twilight", "twilight-cache-inmemory"]
webhook = ["urlencoding"]
rocket = ["webhook", "dep:rocket"]
axum = ["webhook", "async-trait", "serde_json", "dep:axum"]
warp = ["webhook", "async-trait", "dep:warp"]
actix-web = ["webhook", "dep:actix-web"]