3 ms·
> The big HTTP libraries let you opt out (of async) At least for reqwest it just wraps the async code in something like `block_on`: https://github.com/seanmons
by ReactiveJelly 4y ago
> The big HTTP libraries let you opt out (of async)
At least for reqwest it just wraps the async code in something like `block_on`: https://github.com/seanmonstar/reqwest/blob/5397d2cf8eaecc9f964ab4d2b40b8f2ad24ce26d/src/blocking/client.rs#L1042 https://github.com/seanmonstar/reqwest/blob/5397d2cf8eaecc9f...
And as the sibling comment says, you can do that in your own code. It does still add Tokio to your binary size, and add some compile time, and probably start a bunch of worker threads you don't need, but it does work.