News for hackers. Stuff that matters.
Re:Tokio 1.0 – async runtime for Rust by nicoburns on Wednesday December 23, 2020 @08:13PM (#25524196)
For Rocket you want to use the master branch which has async support. Then your request handler is an async function and you can just .await the future returned by reqwest.
Re:Tokio 1.0 – async runtime for Rust by renewiltord on Wednesday December 23, 2020 @08:46PM (#25524359)
Oh, I must be behind. Should've kept up and tried it. Thank you!