Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Serial
This crate provides Rust programs with access to serial ports. Serials ports are defined as traits
to support extension through custom serial port implementations. The goals of the serial crate are
to support all platforms supported by Rust. Currently, only Unix TTY devices are supported.
Usage
Add serial as a dependency in Cargo.toml:
[]
= "0.0.3"
Import the serial crate and everything from the serial::prelude module. The serial::prelude
module contains traits that are useful to have in scope. All the traits in prelude begin with
Serial to avoid name conflicts with other crates. Having the traits in scope avoids compiler
errors when using serial ports.
For now, you must open a serial port using a system-specific method. Once you've opened a serial
port, you can interact with it using the SerialPort and SerialPortExt traits. By depending on
the traits, your code will support future implementations of serial ports, including custom
implementations such as those for embedded systems.
extern crate serial;
use io;
use Path;
// import useful traits
use *;
// use SerialPort trait to program generically
License
Copyright © 2015 David Cuddeback
Distributed under the MIT License.