1 2 3 4 5 6 7 8 9 10 11
use scanpw::scanpw; fn main() { println!("This example has a prompt and doesn't echo keystrokes."); let echo_settings = None; let password = scanpw!(echo_settings, "Password: "); println!("\"{}\" was entered", password); }