@@ -58,6 +58,7 @@ aliri_braid = "0.3.1"
5858futures = { version = " 0.3.25" , optional = true }
5959hyper = { version = " 0.14.23" , optional = true }
6060twitch_types = { version = " 0.3.10" , path = " ./twitch_types" }
61+ yoke = { version = " 0.6.2" , features = [" derive" ] }
6162
6263[features ]
6364default = [" deser_borrow" ]
@@ -69,83 +70,29 @@ deny_unknown_fields = []
6970trace_unknown_fields = [" dep:serde_ignored" , " tracing" ]
7071
7172serde_json = [" dep:serde_json" , " dep:serde_path_to_error" ]
72- helix = [
73- " twitch_types/color" ,
74- " twitch_types/emote" ,
75- " twitch_types/goal" ,
76- " twitch_types/moderation" ,
77- " twitch_types/points" ,
78- " twitch_types/stream" ,
79- " twitch_types/timestamp" ,
80- " twitch_types/user" ,
81- " dep:async-trait" ,
82- " serde_json" ,
83- " dep:hyper" ,
84- ]
73+ helix = [" twitch_types/color" , " twitch_types/emote" , " twitch_types/goal" , " twitch_types/moderation" , " twitch_types/points" , " twitch_types/stream" , " twitch_types/timestamp" , " twitch_types/user" , " dep:async-trait" , " serde_json" , " dep:hyper" ]
8574
8675deser_borrow = []
8776
8877tmi = [" serde_json" , " dep:serde_path_to_error" , " dep:hyper" ]
8978
90- surf = [
91- " dep:surf" ,
92- " dep:http-types" ,
93- " client" ,
94- " twitch_oauth2/surf" ,
95- " hyper?/stream" ,
96- ]
79+ surf = [" dep:surf" , " dep:http-types" , " client" , " twitch_oauth2/surf" , " hyper?/stream" ]
9780
9881ureq = [" dep:ureq" , " client" ]
9982
10083reqwest = [" dep:reqwest" , " client" , " twitch_oauth2/reqwest" ]
10184
102- pubsub = [
103- " serde_json" ,
104- " twitch_types/emote" ,
105- " twitch_types/moderation" ,
106- " twitch_types/stream" ,
107- " twitch_types/timestamp" ,
108- " twitch_types/user" ,
109- " twitch_types/points" ,
110- ]
85+ pubsub = [" serde_json" , " twitch_types/emote" , " twitch_types/moderation" , " twitch_types/stream" , " twitch_types/timestamp" , " twitch_types/user" , " twitch_types/points" ]
11186
112- eventsub = [
113- " serde_json" ,
114- " twitch_types/emote" ,
115- " twitch_types/eventsub" ,
116- " twitch_types/goal" ,
117- " twitch_types/points" ,
118- " twitch_types/stream" ,
119- " twitch_types/timestamp" ,
120- # insert when websockets are stable
121- # "serde_json/raw_value",
122- ]
87+ eventsub = [" serde_json" , " twitch_types/emote" , " twitch_types/eventsub" , " twitch_types/goal" , " twitch_types/points" , " twitch_types/stream" , " twitch_types/timestamp" ]
12388
12489hmac = [" dep:crypto_hmac" , " dep:sha2" ]
12590
12691mock_api = []
12792
128- all = [
129- " tmi" ,
130- " helix" ,
131- " client" ,
132- " pubsub" ,
133- " eventsub" ,
134- " hmac" ,
135- " twitch_oauth2" ,
136- " tracing" ,
137- " twitch_types/time" ,
138- ]
93+ all = [" tmi" , " helix" , " client" , " pubsub" , " eventsub" , " hmac" , " twitch_oauth2" , " tracing" , " twitch_types/time" ]
13994
140- _all = [
141- " all" ,
142- " typed-builder" ,
143- " surf" ,
144- " reqwest" ,
145- " ureq" ,
146- " twitch_oauth2/surf_client_curl" ,
147- " mock_api" ,
148- ]
95+ _all = [" all" , " typed-builder" , " surf" , " reqwest" , " ureq" , " twitch_oauth2/surf_client_curl" , " mock_api" ]
14996
15097[dev-dependencies ]
15198tokio = { version = " 1.22.0" , features = [" rt-multi-thread" , " macros" ] }
@@ -169,6 +116,12 @@ name = "get_channel_status"
169116path = " examples/get_channel_status.rs"
170117required-features = [" reqwest" , " helix" ]
171118
119+ [[example ]]
120+ name = " get_users"
121+ path = " examples/get_users.rs"
122+ required-features = [" reqwest" , " helix" ]
123+
124+
172125[[example ]]
173126name = " get_moderation"
174127path = " examples/get_moderation.rs"
0 commit comments