1 unstable release

Uses old Rust 2015

0.4.0 Jul 2, 2017

#21 in #rs232

Download history 11064/week @ 2024-07-21 9360/week @ 2024-07-28 9649/week @ 2024-08-04 10692/week @ 2024-08-11 11406/week @ 2024-08-18 16292/week @ 2024-08-25 24251/week @ 2024-09-01 30220/week @ 2024-09-08 35572/week @ 2024-09-15 38169/week @ 2024-09-22 27833/week @ 2024-09-29 9453/week @ 2024-10-06 10397/week @ 2024-10-13 10994/week @ 2024-10-20 11938/week @ 2024-10-27 12513/week @ 2024-11-03

46,512 downloads per month
Used in 191 crates (3 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

~140KB