docs.rs failed to build rpassword-0.0.1
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: rpassword-7.3.1

Rustastic Password

This Rust package allows you to safely read passwords from standard input in a console application.

Usage

Add termios as a dependency in Cargo.toml:

[dependencies]
rpassword = "0.0.1"

Import the rpassword crate and use the read_password() function:

extern crate rpassword;

use rpassword::read_password;

fn main() {
    print!("Type a password: ");
    let password = read_password().unwrap();
    println!("The password is: '{}'", password);
}