v2.1.0
Thanks to @teythoon, rpassword can now read the password from the TTY directly, instead of STDIN, which is safer. It goes something like this:
extern crate rpassword;
fn main() {
let pass = rpassword::read_password_from_tty(Some("Password: ")).unwrap();
println!("Password: {}", pass);
}There should be no breaking changes. read_password_from_tty is not used by default. It is opt-in, so that your code doesn't break.
Feel free to open an issue if you need any help.