1 unstable release

Uses old Rust 2015

0.4.0 Jul 2, 2017

#21 in #rs232

Download history 4079/week @ 2024-01-03 4515/week @ 2024-01-10 14292/week @ 2024-01-17 27082/week @ 2024-01-24 31976/week @ 2024-01-31 32191/week @ 2024-02-07 27918/week @ 2024-02-14 31558/week @ 2024-02-21 32738/week @ 2024-02-28 34956/week @ 2024-03-06 38047/week @ 2024-03-13 40257/week @ 2024-03-20 40009/week @ 2024-03-27 41433/week @ 2024-04-03 40799/week @ 2024-04-10 34634/week @ 2024-04-17

162,857 downloads per month
Used in 196 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