# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.70.0" name = "twitch_oauth2" version = "0.14.0" build = false include = [ "src/*", "./Cargo.toml", "examples/*", "./README.md", "CHANGELOG.md", "LICENSE*", ] autobins = false autoexamples = false autotests = false autobenches = false description = "Oauth2 for Twitch endpoints" documentation = "https://docs.rs/twitch_oauth2/0.14.0" readme = "README.md" keywords = [ "oauth", "twitch", "async", "asynchronous", ] license = "MIT OR Apache-2.0" repository = "https://github.com/twitch-rs/twitch_oauth2" [package.metadata.docs.rs] cargo-args = [ "-Zunstable-options", "-Zrustdoc-scrape-examples", ] features = [ "all", "mock_api", ] rustc-args = [ "--cfg", "nightly", ] rustdoc-args = [ "--cfg", "nightly", ] [lib] name = "twitch_oauth2" path = "src/lib.rs" [[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 = "user_token" path = "examples/user_token.rs" required-features = ["reqwest"] [dependencies.aliri_braid] version = "0.4.0" [dependencies.async-trait] version = "0.1.68" optional = true [dependencies.base64] version = "0.22.0" [dependencies.displaydoc] version = "0.2.5" [dependencies.http] version = "1.1.0" [dependencies.http-types] version = "2.12.0" optional = true [dependencies.once_cell] version = "1.19.0" [dependencies.rand] version = "0.8.5" [dependencies.reqwest] version = "0.12.2" optional = true default-features = false [dependencies.serde] version = "1.0.163" [dependencies.serde_derive] version = "1.0.163" [dependencies.serde_json] version = "1.0.96" [dependencies.surf] version = "2.3.2" optional = true default-features = false [dependencies.thiserror] version = "1.0.40" [dependencies.twitch_types] version = "0.4.3" features = ["serde"] [dependencies.url] version = "2.5.2" [dev-dependencies.anyhow] version = "1.0.71" [dev-dependencies.dotenv] version = "0.15.0" [dev-dependencies.reqwest] version = "0.12.2" [dev-dependencies.rpassword] version = "7.3.1" [dev-dependencies.surf] version = "2.3.2" [dev-dependencies.tokio] version = "1.40.0" features = [ "rt-multi-thread", "macros", "test-util", ] [features] all = [ "surf_client_curl", "reqwest", ] client = ["dep:async-trait"] default = [] mock_api = [] reqwest = [ "dep:reqwest", "client", ] surf = [ "dep:surf", "dep:http-types", "http-types?/hyperium_http", "client", ] surf_client_curl = [ "surf", "surf/curl-client", ] [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = [ "cfg(_internal_never)", "cfg(nightly)", ]