Closed ouromoros closed 1 month ago
A new version with the fix hasn't yet been published to crates.io. I'll publish one shortly.
You can fix your program sooner by depending on Quinn yourself, and enabling the feature.
@seanmonstar Thanks for the fast response! Just out of my curiosity, how did the problem occur?
So I'm trying to make
http3
feature forreqwest
package work. After some struglling with theRUSTFLAG
configuration, I finally made the project compile withreqwest = { version = "0.11.18", features = ["http3"] }
Now the problem is when I try to initiate a client, it throws error:
unable to create QUIC endpoint: Custom { kind: Other, error: "no async runtime found" }
.After some digging, the error happens in this code block in
quinn
package:I double checked that
::tokio::runtime::Handle::try_current()
does return anOK
result. I then checked theCargo.toml
stored in localreqwest
package, it seemed thatquinn
is missing theruntime-tokio
feature that is supposed to be there:Honestly I have no clue what's going on here. In Github repo
runtime-tokio
is clearly set forquinn
, yet theCargo.toml
from the downloaded package just does not have it. It could be that I'm doing something wrong here, but I really don't know it.Also I'm on
stable-x86_64-pc-windows-msvc (default) rustc 1.70.0 (90c541806 2023-05-31)
, not sure if that matters.