serial-io

Crates.ioserial-io
lib.rsserial-io
version0.3.0
sourcesrc
created_at2021-06-09 14:25:15.320523
updated_at2021-06-10 09:56:22.406868
descriptionA serial port implementation
homepagehttps://github.com/tarnadas/serial-io-rs
repositoryhttps://github.com/tarnadas/serial-io-rs
max_upload_size
id408175
size80,020
Mario Reder (Tarnadas)

documentation

http://docs.rs/serial-io

README

serial-io: A serial port IO library

crates.io docs.rs

serial-io is a fork of mio-serial with support for the tokio runtime. It combines therefore tokio-serial and adds support for tokio version 1.

serial-io provides a serial port implementation using mio.

Windows support has been dropped until Tokio provides a serial interface

Usage

Add serial-io to you Cargo.toml:

[dependencies]
serial-io = "0.1"

Optionally enable tokio feature:

[dependencies]
serial-io = { version = "0.1", features = ["tokio] }

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.

Commit count: 106

cargo fmt