Mio echo server example is formidable for new comers


I try to create a server with Rust, and mio library seems the only way to support lots of connections concurrently. When I am learning mio library, however, the first example, echo server, seems really verbose and a lot of boilerplate codes there. Really don’t think this example program is attractive to new comers. I am afraid that many others will also feel so frustrated by that example.

Is there really no better way to implement a concurrent server in Rust?


It seems we should point the new comers to the echo server example of mioco (https://github.com/dpc/mioco) or coio-rs (https://github.com/zonyitoo/coio-rs) instead. Those ones are much more new comers friendly.


mio sits at the very bottom of the async server stack, it’s like a libuv for Rust. Ideally, there should be a more high level abstraction on top of mio, like mioco or coio-rs. rotor also seems nice.