I wish Rust would adopt tokio (or any other, if better suited) as a default first citizen async runtime. Then everyone can be sure to write in that runtime , knowingly it will run. If people need a different runtime, they could still opt out of tokio and opt in to whatever they like. The freedom of choice would not be hindered, but we would gain a default runtime.
Goal is to keep the std to the absolute minimum. It’s a lot easier to change a normal library and switch over, than to change std. Just ask the c++ guys about their regex support.
That’s the reason rand, regex, num, chrono etc. aren’t part of the std.
I wish Rust would adopt tokio (or any other, if better suited) as a default first citizen async runtime. Then everyone can be sure to write in that runtime , knowingly it will run. If people need a different runtime, they could still opt out of tokio and opt in to whatever they like. The freedom of choice would not be hindered, but we would gain a default runtime.
What’s stopping this from happening?
Goal is to keep the std to the absolute minimum. It’s a lot easier to change a normal library and switch over, than to change std. Just ask the c++ guys about their regex support.
That’s the reason rand, regex, num, chrono etc. aren’t part of the std.