From 096c1c8ac794ad16adbc23d90a4e8c2ecc494dcd Mon Sep 17 00:00:00 2001 From: Conrad Kleinespel Date: Sun, 13 Mar 2022 18:37:17 +0100 Subject: [PATCH] Bump rpassword to 6.0.0 --- Cargo.toml | 4 ++-- src/rpassword/all.rs | 4 ++-- src/rutil/print_tty.rs | 5 ++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1d8c0b1..1186fa4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rpassword" -version = "5.0.1" +version = "6.0.0" authors = ["Conrad Kleinespel "] description = "Read passwords in console applications." license = "Apache-2.0" @@ -19,4 +19,4 @@ winapi = { version = "0.3", features = ["std", "winnt", "fileapi", "processenv", [dependencies] serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" \ No newline at end of file +serde_json = "1.0" diff --git a/src/rpassword/all.rs b/src/rpassword/all.rs index 7ce2d88..20a0062 100644 --- a/src/rpassword/all.rs +++ b/src/rpassword/all.rs @@ -199,10 +199,10 @@ mod windows { } } -#[cfg(target_family = "wasm")] -pub use wasm::read_password; #[cfg(target_family = "unix")] pub use unix::read_password; +#[cfg(target_family = "wasm")] +pub use wasm::read_password; #[cfg(target_family = "windows")] pub use windows::read_password; diff --git a/src/rutil/print_tty.rs b/src/rutil/print_tty.rs index 597ff7d..a69392a 100644 --- a/src/rutil/print_tty.rs +++ b/src/rutil/print_tty.rs @@ -11,7 +11,6 @@ mod wasm { } } - #[cfg(target_family = "unix")] mod unix { use std::io::Write; @@ -68,7 +67,7 @@ pub fn print_writer(stream: &mut impl Write, prompt: impl ToString) -> std::io:: use std::io::Write; #[cfg(target_family = "unix")] pub use unix::print_tty; -#[cfg(target_family = "windows")] -pub use windows::print_tty; #[cfg(target_family = "wasm")] pub use wasm::print_tty; +#[cfg(target_family = "windows")] +pub use windows::print_tty;