Open RasAllhague opened 1 month ago
reqwest
feature for twitch_api
request
0.12, but twitch_api
depends on 0.11. If you change your dependency from reqwest
0.12 to 0.11, your code compiles.If you want to use a newer version of reqwest
, you need to depend on twitch_api
as a Git dependency:
[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.