You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am new to rust, but I tried to use your crates to download some pictures from google images (is there a way to pick a random one ?).
But my problem is that in my dependencies I am already have tokio as version 1.26.0.
When starting a simple image search (async) like in your sample, I have this error :
thread 'main' panicked at 'there is no timer running, must be called from the context of a Tokio 0.2.x runtime', /home/ixo/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.25/src/time/driver/handle.rs:24:32
Seems like http-client uses tokio 0.2, I believe there's something in async-std that can handle runtime errors like this. I'll play around with this and see what I can do.
Hi,
I am new to rust, but I tried to use your crates to download some pictures from google images (is there a way to pick a random one ?).
But my problem is that in my dependencies I am already have tokio as version 1.26.0.
When starting a simple image search (async) like in your sample, I have this error :
thread 'main' panicked at 'there is no timer running, must be called from the context of a Tokio 0.2.x runtime', /home/ixo/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-0.2.25/src/time/driver/handle.rs:24:32
If I use cargo tree, I see that :
What can we do ?
The text was updated successfully, but these errors were encountered: