1 2 3 4 5 6 7 8 9
use std::io; use yapp::{PasswordReader, Yapp}; fn main() -> io::Result<()> { let mut yapp = Yapp::new(); let password = yapp.read_password_with_prompt("Type something and press ENTER: ")?; println!("You typed: {password}"); Ok(()) }