1 unstable release

Uses old Rust 2015

0.4.0 Jul 2, 2017

#21 in #rs232

Download history 5226/week @ 2023-11-28 3953/week @ 2023-12-05 4524/week @ 2023-12-12 3481/week @ 2023-12-19 2162/week @ 2023-12-26 3890/week @ 2024-01-02 4527/week @ 2024-01-09 12081/week @ 2024-01-16 24449/week @ 2024-01-23 32946/week @ 2024-01-30 32131/week @ 2024-02-06 28060/week @ 2024-02-13 31303/week @ 2024-02-20 32471/week @ 2024-02-27 34624/week @ 2024-03-05 14719/week @ 2024-03-12

117,098 downloads per month
Used in 194 crates (3 directly)

MIT license

29KB
690 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

~140KB