Skip to content

Releases: conradkleinespel/rpassword

v4.0.4

18 Jan 00:01
Compare
Choose a tag to compare

Fixes deprecation warnings. Thanks @tov !

This should be non-breaking as long as you use an updated version of the Rust toolchain.

v.4.0.3

05 Dec 18:12
Compare
Choose a tag to compare

Updates the README.md instructions so they appear correctly on crates.io. No code changes.

v4.0.2

03 Dec 23:12
c2666c5
Compare
Choose a tag to compare

Updates the README.md instructions so they appear correctly on crates.io. No code changes.

v4.0.1

10 Aug 22:09
Compare
Choose a tag to compare

Updates the README.md instructions so they appear correctly on crates.io. No code changes.

v4.0.0

10 Aug 22:08
0d3615b
Compare
Choose a tag to compare

Updates winapi to version 0.3. Thanks @Draphar !

v3.0.1

29 Mar 07:19
Compare
Choose a tag to compare

This release fixes a bug on Windows, where no newline would be printed after hitting ENTER following a password. Thanks @joshuef for your help !

Feel free to open an issue if you need any help.

v3.0.0

20 Mar 21:26
Compare
Choose a tag to compare

This release allows reading the password even if there is no \n at the end of the input. Thanks @longshorej for this improvement. Here was the justification behind the change:

In general, GNU readline will return the input it has read when reaching EOF. It seems to me that rpassword's current behavior in this regard is not conventional.

This a breaking change so the version has been bumped up to 3.0.0 on crates.io.

Feel free to open an issue if you need any help.

v2.1.0

26 Nov 20:09
Compare
Choose a tag to compare

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.

v2.0.0

17 Oct 19:10
Compare
Choose a tag to compare
  • Thanks to @DaveLancaster, you can now read passwords from anything that implements std::io::BufRead: #20. This makes mocking STDIN easier for tests.
  • Deprecated functions have been removed. Use rprompt to read input other than passwords from the command line.

Easy upgrade path:

  • Upgrade to rpassword:1.0.2,
  • Handle any deprecation notices,
  • Upgrade to rpassword:2.0.0.

Breaking changes:

  • Deprecated functions were removed,
  • A new function was introduced. In most cases, this won't break your code, but it might break your code if you have something like this:
use rpassword::*;
use foobar as read_password_from_reader;

v1.0.2

10 Aug 19:12
Compare
Choose a tag to compare

Fixes bug on Windows where \r would be read.

No breaking changes.