Hacker News new | ask | show | jobs
by Elinvynia 952 days ago
The problem is that a large number of popular libraries has converted to async, 95+% of them to Tokio.

So you are stuck with smaller, less battle tested products if you'd rather not pull in 100+ crates of dependencies that are doing nothing but inflating the build times and file sizes (for your particular usecase).

Example: reqwest vs ureq

1 comments

OK, but like, can we just be honest then that the problem here is that your build times go up? People act like it's an insurmountable problem rather than just a trivial trade-off where, yes, your build times will go up because of some extra dependencies on an async runtime.

Increased build times are not great but holy shit the way people talk you'd never know that that's the actual trade-off here, an extra 3 seconds on a clean build.

Adding dependencies is not easy in some organizations. You have to trust them, in addition to waiting 3 seconds to compile them.
OK, in some niche scenarios I can see the cost being larger, but I think this is totally overstated.