-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCargo.toml
102 lines (89 loc) · 2.53 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
[package]
name = "twitch_oauth2"
version = "0.15.1"
edition = "2021"
repository = "https://github.com/twitch-rs/twitch_oauth2"
license = "MIT OR Apache-2.0"
description = "Oauth2 for Twitch endpoints"
keywords = ["oauth", "twitch", "async", "asynchronous"]
documentation = "https://docs.rs/twitch_oauth2/0.15.1"
readme = "README.md"
include = [
"src/*",
"./Cargo.toml",
"examples/*",
"./README.md",
"CHANGELOG.md",
"LICENSE*",
]
rust-version = "1.71.1"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = []
client = ["dep:async-trait"]
reqwest = ["dep:reqwest", "client"]
surf_client_curl = ["surf", "surf/curl-client"]
surf = ["dep:surf", "dep:http-types", "http-types?/hyperium_http", "client"]
mock_api = []
all = ["surf_client_curl", "reqwest"]
[dependencies]
thiserror = "1.0.40"
displaydoc = "0.2.5"
serde = { version = "1.0.163" }
serde_derive = { version = "1.0.163" }
serde_json = "1.0.96"
async-trait = { version = "0.1.68", optional = true }
http = "1.1.0"
surf = { version = "2.3.2", optional = true, default-features = false }
reqwest = { version = "0.12.2", optional = true, default-features = false }
http-types = { version = "2.12.0", optional = true }
once_cell = "1.19.0"
aliri_braid = "0.4.0"
url = "2.5.4"
base64 = "0.22.0"
rand = "0.8.5"
twitch_types = { version = "0.4.3", features = ["serde"] }
[dev-dependencies]
tokio = { version = "1.40.0", features = [
"rt-multi-thread",
"macros",
"test-util",
] }
dotenv = "0.15.0"
anyhow = "1.0.71"
reqwest = "0.12.2"
surf = "2.3.2"
rpassword = "7.3.1"
[workspace]
members = ["xtask"]
[[example]]
name = "user_token"
path = "examples/user_token.rs"
required-features = ["reqwest"]
[[example]]
name = "app_access_token"
path = "examples/app_access_token.rs"
required-features = ["reqwest"]
[[example]]
name = "auth_flow"
path = "examples/auth_flow.rs"
required-features = ["reqwest"]
[[example]]
name = "mock_app"
path = "examples/mock_app.rs"
required-features = ["reqwest", "mock_api"]
[[example]]
name = "mock_user"
path = "examples/mock_user.rs"
required-features = ["reqwest", "mock_api"]
[[example]]
name = "device_code_flow"
path = "examples/device_code_flow.rs"
required-features = ["reqwest", "client"]
[package.metadata.docs.rs]
features = ["all", "mock_api"]
rustc-args = ["--cfg", "nightly"]
rustdoc-args = ["--cfg", "nightly"]
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(_internal_never)', 'cfg(nightly)'] }