docs.rs failed to build termios-0.0.2
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.
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.
Visit the last successful build:
termios-0.3.3
Termios Rust Bindings
The termios
crate provides safe bindings for the Rust programming language to the terminal I/O
interface implemented by
Unix operating systems. The safe bindings are a small wrapper around the raw C functions, which
converts integer return values to std::io::IoResult
to indicate success or failure. The raw C
functions are available in the termios::ffi
module, but must be called within an unsafe
block.
Dependencies
In order to use the termios
crate, you must have:
- A Rust runtime with the
libc
crate. Since thelibc
crate's interface is considered unstable, you must install Rust from the nightly builds or from the latest source. - A native
libc
library that implements thetermios
API. This should be available on any recent version of OSX or Linux usingglibc
.
Usage
Add termios
as a dependency in Cargo.toml
:
[]
= "0.0.2"
Import the termios
crate and any symbols needed from termios
. You will also probably need
libc::c_int
for file descriptors and std::old_io::IoResult
to propagate errors.
extern crate termios;
extern crate libc;
use IoResult;
use c_int;
use *;
License
Copyright © 2015 David Cuddeback
Distributed under the MIT License.