forked from randomairborne/top-gg-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
63 lines (57 loc) · 1.99 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
[package]
name = "topgg"
version = "1.2.0"
edition = "2021"
authors = [
"CraftServer <[email protected]> (https://craftserver.net)",
"null (https://github.com/null8626)",
"Top.gg <[email protected]> (https://top.gg)",
]
description = "The (forked) Rust wrapper for the Top.gg API"
readme = "README.md"
repository = "https://github.com/top-gg/rust-sdk"
license = "MIT"
keywords = ["discord", "bots", "topgg", "dbl"]
categories = ["api-bindings", "web-programming::http-client"]
exclude = [".gitattributes", ".gitignore", "rustfmt.toml"]
[dependencies]
cfg-if = "1"
serde = { version = "1", features = ["derive"] }
urlencoding = { version = "2", optional = true }
chrono = { version = "0.4", default-features = false, optional = true, features = [
"serde",
] }
tokio = { version = "1", optional = true, features = ["net", "io-util"] }
reqwest = { version = "0.11", optional = true, features = [
"json",
], default-features = false }
serde_json = { version = "1", optional = true }
rocket = { version = "0.4", default-features = false, optional = true }
axum = { version = "0.6", 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", "rustls-tls"]
api = [
"dep:chrono",
"dep:serde_json",
"dep:tokio",
"dep:reqwest",
"dep:urlencoding",
]
autoposter = ["api", "dep:tokio", "tokio?/rt", "tokio?/sync", "tokio?/time"]
rustls-tls = ["api", "reqwest/rustls-tls"]
native-tls = ["api", "reqwest/native-tls"]
webhook = []
rocket = ["webhook", "dep:serde_json", "dep:rocket"]
axum = ["webhook", "dep:async-trait", "dep:serde_json", "dep:axum"]
warp = ["webhook", "dep:async-trait", "dep:warp"]
actix = ["webhook", "dep:actix-web"]