-
Notifications
You must be signed in to change notification settings - Fork 6
/
Cargo.toml
42 lines (36 loc) · 1.6 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
[package]
name = "topgg"
version = "1.0.1"
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/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.0"
serde = { version = "1", default-features = false, features = ["derive"] }
urlencoding = "2"
chrono = { version = "0.4", default-features = false, optional = true, features = ["serde"] }
tokio = { version = "1", optional = true, features = ["net", "io-util"] }
tokio-native-tls = { version = "0.3", optional = true }
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
[features]
default = ["api"]
api = ["chrono", "serde_json", "tokio", "tokio-native-tls"]
autoposter = ["api", "tokio/rt", "tokio/sync", "tokio/time"]
webhook = []
rocket = ["webhook", "serde_json", "dep:rocket"]
axum = ["webhook", "async-trait", "serde_json", "dep:axum"]
warp = ["webhook", "async-trait", "dep:warp"]
actix = ["webhook", "actix-web"]