conradkleinespel / rpassword

Cross platform Rust library to read a password in the terminal (Linux, BSD, OSX, Windows, WASM).
Apache License 2.0
244 stars 38 forks source link

Bump to v5 #52

Closed conradkleinespel closed 4 years ago

conradkleinespel commented 4 years ago

Release text

The signature of read_password_with_reader has changed from:

pub fn read_password_with_reader<T>(source: Option<T>) -> ::std::io::Result<String>
    where
        T: ::std::io::BufRead

to

pub fn read_password_with_reader<T>(source: Option<&mut T>) -> ::std::io::Result<String>
    where
        T: ::std::io::BufRead

This allows to call read_password_with_reader multiple times with the same reader. Thanks @dvermd for this contribution!