mio-serial provides a termios serial port implementation for mio. As this uses termios there is no windows implementation at this time.
Add mio-serial
to you Cargo.toml
:
toml
[dependecies]
mio-serial = "0.1"
Then add this to your crate root:
rust
extern crate mio_serial;
A few examples can be found here.