Cargo Features

[dependencies]
twitch_api = { version = "0.7.0-rc.7", default-features = false, features = ["all", "client", "unsupported", "beta", "deny_unknown_fields", "trace_unknown_fields", "serde_json", "helix", "deser_borrow", "tmi", "surf", "ureq", "reqwest", "tower", "pubsub", "eventsub", "hmac", "mock_api", "typed-builder"] }
default = deser_borrow

The deser_borrow feature is set by default whenever twitch_api is added without default-features = false somewhere in the dependency tree.

all = client, eventsub, helix, hmac, pubsub, tmi, tracing, twitch_oauth2

Enables time of twitch_types

client all? reqwest? surf? tower? ureq?

Enables client of twitch_oauth2 ^0.12.4 and futures and hyper ^0.14.26

hyper:

Client/Server

Affects helix::client, errors::ClientRequestError, twitch_api::client, tmi::TmiClient, twitch_api::TwitchClient

unsupported = beta

Enables raw_value of optional serde_json

Affects pubsub::channel_cheer, pubsub::channel_sub_gifts, pubsub::community_points, pubsub::following, pubsub::hypetrain, pubsub::raid, pubsub::video_playback

beta unsupported?
deny_unknown_fields
trace_unknown_fields = tracing

Enables serde_ignored

serde_json eventsub? helix? pubsub? tmi?

Enables serde_json and serde_path_to_error

Affects twitch_api::DeserError, twitch_api::parse_json, twitch_api::parse_json_value

helix all? = serde_json

Enables async-trait and hyper ^0.14.26, color, emote, goal, moderation, points, stream, timestamp and user of twitch_types

Affects client::HelixClient, twitch_api::helix, twitch_api::TWITCH_HELIX_URL, twitch_api::TwitchClient.helix, extra::DonationAmount, twitch_api::TwitchClient

deser_borrow default
tmi all? = serde_json

Enables hyper ^0.14.26 and serde_path_to_error

Affects twitch_api::tmi, twitch_api::TWITCH_TMI_URL, twitch_api::TwitchClient.tmi, tmi::TmiClient, twitch_api::TwitchClient

surf = client

Enables http-types, surf, surf of twitch_oauth2 ^0.12.4, stream of optional hyper ^0.14.26

ureq = client

Enables ureq

reqwest = client

Enables reqwest ^0.11.17, reqwest of twitch_oauth2 ^0.12.4

tower = client

Enables tower-service

pubsub all? = serde_json

Enables emote, moderation, points, stream, timestamp and user of twitch_types

Affects twitch_api::pubsub, twitch_api::TWITCH_PUBSUB_URL

eventsub all?

Enables emote, eventsub, goal, points, stream and timestamp of twitch_types and raw_value of serde_json

serde_json:

Provide a RawValue type that can hold unprocessed JSON during deserialization.

Affects eventsub::EventSubSubscription, endpoints::eventsub, twitch_api::eventsub, twitch_api::TWITCH_EVENTSUB_WEBSOCKET_URL, extra::DonationAmount

hmac all?

Enables hmac and sha2

mock_api

Enables mock_api of optional twitch_oauth2 ^0.12.4

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

typed-builder implicit feature

Enables typed-builder ^0.14.0

typed-builder:

Compile-time type-checked builder derive

twitch_oauth2 all? client? reqwest? surf?

Enables twitch_oauth2 ^0.12.4

tracing all? trace_unknown_fields?