Favor tokio over async-std #2901
Replies: 2 comments
-
Thank you for your post! Personally, I'd be in favor of that too. From the project's perspective though, I think we should not favor any particular runtime, at least when it comes to the feature design. I've already put down a few thoughts around this here: #2173 Re-designing the features would have the biggest impact IMO. Another problem that would be good to fix is #2173. We'd very much appreciate help on this front. |
Beta Was this translation helpful? Give feedback.
-
I honestly dont mind this, although this is assuming its just for examples and not ditching async-std for tokio altogether, unless otherwise needed to be done for whatever reason though to my knowledge there havent been any issues with async-std (despite its current stats). As @thomaseizinger said, libp2p shouldnt really favor a specific runtime especially given that people still use tokio or async-std for different reasons. Could be for footprint, design, functionality, etc., though I have always preferred tokio due to better documentation. |
Beta Was this translation helpful? Give feedback.
-
State of things
rust-libp2p currently favors async-std over tokio. I.e. the majority of the examples use async-std, AsyncRead and AsyncWrite are the traits async-std uses and the default features include async-std not tokio.
async-std vs tokio
Of course I'm just expressing my opinion here. I'm very open for good reasons to stay with async-std and open to discussions 😃
Beta Was this translation helpful? Give feedback.
All reactions