15 releases (8 stable)

✓ Uses Rust 2018 edition

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

#14 in Asynchronous

Download history 860/week @ 2019-12-10 923/week @ 2019-12-17 261/week @ 2019-12-24 483/week @ 2019-12-31 972/week @ 2020-01-07 685/week @ 2020-01-14 857/week @ 2020-01-21 1015/week @ 2020-01-28 811/week @ 2020-02-04 1373/week @ 2020-02-11 1355/week @ 2020-02-18 1386/week @ 2020-02-25 1221/week @ 2020-03-03 1651/week @ 2020-03-10 1356/week @ 2020-03-17 1247/week @ 2020-03-24

4,196 downloads per month
Used in 8 crates (2 directly)

MIT and MPL-2.0 licenses

39KB
474 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.5–1.1MB
~23K SLoC