1 unstable release

Uses old Rust 2015

0.4.0 Jul 2, 2017

#22 in #rs232

Download history 38698/week @ 2024-03-14 40366/week @ 2024-03-21 40258/week @ 2024-03-28 40892/week @ 2024-04-04 41377/week @ 2024-04-11 38995/week @ 2024-04-18 16471/week @ 2024-04-25 14494/week @ 2024-05-02 15147/week @ 2024-05-09 13333/week @ 2024-05-16 13014/week @ 2024-05-23 12860/week @ 2024-05-30 11776/week @ 2024-06-06 9770/week @ 2024-06-13 9766/week @ 2024-06-20 6775/week @ 2024-06-27

40,138 downloads per month
Used in 188 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