Cargo Features

[dependencies]
twitch_api = { version = "0.7.0-rc.8", default-features = false, features = ["all", "client", "unsupported", "beta", "deny_unknown_fields", "trace_unknown_fields", "serde_json", "helix", "deser_borrow", "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, tracing, twitch_oauth2

Enables time of twitch_types

client all? reqwest? surf? tower? ureq?

Enables futures and hyper, client of twitch_oauth2

Affects helix::client, errors::ClientRequestError, twitch_api::client, 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?

Affects moderation::warn_chat_user

deny_unknown_fields
trace_unknown_fields = tracing

Enables serde_ignored

serde_json eventsub? helix? pubsub?

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, 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, extra::AnnouncementColor, extra::AnnouncementColorError, twitch_api::TwitchClient

deser_borrow default
surf = client

Enables http-types and surf, surf of twitch_oauth2

ureq = client

Enables ureq

reqwest = client

Enables reqwest, reqwest of twitch_oauth2

tower = client

Enables http-body-util and 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 color, emote, eventsub, goal, points, stream, sub 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, eventsub::Conduit, eventsub::Shard, endpoints::eventsub, twitch_api::eventsub, twitch_api::TWITCH_EVENTSUB_WEBSOCKET_URL, extra::DonationAmount, extra::AnnouncementColor, extra::AnnouncementColorError

hmac all?

Enables hmac and sha2

mock_api

Enables mock_api of optional twitch_oauth2

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

typed-builder:

Compile-time type-checked builder derive

twitch_oauth2 all? client? reqwest? surf?
tracing all? trace_unknown_fields?