15 releases (8 stable)

3.3.1 Mar 15, 2020
3.3.0 Aug 23, 2019
3.2.14 Jun 1, 2019
3.2.0 Jan 12, 2019
0.1.0 Dec 11, 2016

#120 in Asynchronous

Download history 1287/week @ 2020-11-04 1280/week @ 2020-11-11 1151/week @ 2020-11-18 878/week @ 2020-11-25 1379/week @ 2020-12-02 1280/week @ 2020-12-09 1527/week @ 2020-12-16 1000/week @ 2020-12-23 1357/week @ 2020-12-30 2136/week @ 2021-01-06 1516/week @ 2021-01-13 1627/week @ 2021-01-20 1194/week @ 2021-01-27 1627/week @ 2021-02-03 1304/week @ 2021-02-10 2131/week @ 2021-02-17

6,323 downloads per month
Used in 17 crates (4 directly)

MIT license

42KB
825 lines

mio-serial: A serial port IO library MIO.

Build Status crates.io docs.rs

mio-serial provides a serial port implementation using mio.

Usage

Add mio-serial to you Cargo.toml:

[dependencies]
mio-serial = "3.3"

Then add this to your crate root:

extern crate mio_serial;

Features

The "libudev" dependency of serialport-rs is enabled by default. For x86 linux systems this enables the available_ports function for port enumeration. Not all targets support udev, especially when cross-compiling. To disable this feature, compile with the --no-default-features option. For example:

cargo build --no-default-features

Examples

A few examples can be found here.

License

This software is licensed under MIT.

This software builds upon the MPL-2.0 licensed serialport-rs and constitutes a "Larger Work" by that license. The source for serialport-rs can be found at https://gitlab.com/susurrus/serialport-rs.

Dependencies

~0.6–1.2MB
~26K SLoC