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;