-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do you actually use this library #433
Comments
If you want to use a newer version of [dependencies]
reqwest = "0.12"
tokio = { version = "1.40.0", features = ["macros", "rt-multi-thread"] }
twitch_api = { git = "https://github.com/twitch-rs/twitch_api/", features = [
"all",
"reqwest",
] }
# workaround for https://github.com/twitch-rs/twitch_api/issues/256
[patch.crates-io.twitch_types]
git = "https://github.com/twitch-rs/twitch_api" CC @Emilgardis I think we should release a new version on crates.io. The last one (0.7.0-rc.7) is over one year old and a lot of features have been added since then. Maybe we can get a few PRs in before, but it's probably better if we prioritize releasing soon. |
Thanks for the quick response. Tested it and it works with the workaround. This is something you should mention somewhere close to the examples as there is currently no way for a new user to find this. |
yes, let's release just a rc, do some prs then 0.7, we've been on this rc for way to long :3 @Nerixyz |
If you use any example in a blank fresh project all i get is errors. Yes you can run the example but only when you are in the project. Try creating a new blank rust projekt, then add for example the code you provide under https://docs.rs/twitch_api/0.7.0-rc.7/twitch_api/ in the first example
Get a channel
:code:
dependencies (features all is because you cant be bothered to find the right dependency for a simple example):
What ends up happening is the code does not compile and only complains about reqwest not implementing HttpClient.
If you try to use the code from the eventsub_websocket for example it gets even worse.
The text was updated successfully, but these errors were encountered: