1 unstable release

Uses old Rust 2015

0.4.0 Jul 2, 2017

#164 in Unix APIs

Download history 1667/week @ 2020-12-22 1856/week @ 2020-12-29 2873/week @ 2021-01-05 2247/week @ 2021-01-12 2453/week @ 2021-01-19 2299/week @ 2021-01-26 1899/week @ 2021-02-02 1637/week @ 2021-02-09 1703/week @ 2021-02-16 1845/week @ 2021-02-23 1742/week @ 2021-03-02 1864/week @ 2021-03-09 1456/week @ 2021-03-16 1504/week @ 2021-03-23 1564/week @ 2021-03-30 1574/week @ 2021-04-06

8,824 downloads per month
Used in 104 crates (4 directly)

MIT license

63KB
985 lines

Unix Serial Ports

The serial-unix crate provides a serial port implementation for Unix operating systems.

Compatibility

The serial-unix crate is compatible with any Unix operating system that implements the termios API. The following platforms are confirmed to be compatible:

  • Linux (x86_64, armv6l)
  • OS X (x86_64)
  • FreeBSD (amd64)
  • OpenBSD (amd64)

Usage

In general, one shouldn't need to use the serial-unix library directly. The implementation provided by serial-unix is also exposed through a cross-platform API in the serial crate.

The serial port type defined in serial-unix works with any Unix TTY device. In addition to implementing the standard serial port traits, it also implements std::os::unix::io::AsRawFd, which can be used for integrating with other I/O libraries. See examples/poll.rs for an example of using AsRawFd for event-driven I/O.

License

Copyright © 2015 David Cuddeback

Distributed under the MIT License.

Dependencies

~120KB