News for hackers. Stuff that matters.
Re:Async Rust Is A Bad Language by Animats on Friday September 08, 2023 @01:29PM (#37436638)
> Yes, async is effectively a much harder version of Rust, and it's regrettable how it's been shoved down the throats of everyone, while only 1% of projects using it really need it.

Yes. I just noticed that Tokio was pulled into my program as a dependency. Again. It's not being used, but I'm using a crate which has a function I'm not using which imports reqwest, which imports h2, which imports tokio.

Re:Async Rust Is A Bad Language by grug_htmx_dev on Friday September 08, 2023 @01:33PM (#37436690)
Exactly, because something somewhere needs to make one http call, and it's would be impossible if it wasn't done with scalable async executor. /i
Re:Async Rust Is A Bad Language by Klonoar on Friday September 08, 2023 @03:58PM (#37438627)
PR them to use ureq. ;)
Re:Async Rust Is A Bad Language by wrapperup on Friday September 08, 2023 @09:07PM (#37441196)
I recently did this in a relatively small crate, and it halved the dependencies. Highly recommended if you don't need async.