Skip to content

Commit

Permalink
removes deprecated code, bumps version to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
conradkleinespel committed Oct 17, 2017
1 parent f170e22 commit 0ed0c11
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 36 deletions.
5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]

name = "rpassword"
version = "1.0.2"
version = "2.0.0"
authors = ["Conrad Kleinespel <[email protected]>"]
description = "Read passwords in console applications."
license = "Apache-2.0"
Expand All @@ -11,9 +11,6 @@ documentation = "https://docs.rs/rpassword/"
readme = "README.md"
keywords = ["read", "password", "security", "pass", "getpass"]

[dependencies]
rprompt = "1.0"

[target.'cfg(unix)'.dependencies]
libc = "0.2"

Expand Down
14 changes: 0 additions & 14 deletions examples/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,4 @@ fn main() {
Ok(pass) => println!("{}", pass),
Err(_) => println!("error")
}

// Regular input reading functions, deprecated but present for BC
match rpassword::read_response() {
Ok(pass) => println!("{}", pass),
Err(_) => println!("error")
}
match rpassword::prompt_response_stdout("prompt_reply_stdout") {
Ok(pass) => println!("{}", pass),
Err(_) => println!("error")
}
match rpassword::prompt_response_stderr("prompt_reply_stderr") {
Ok(pass) => println!("{}", pass),
Err(_) => println!("error")
}
}
18 changes: 0 additions & 18 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

extern crate rprompt;
#[cfg(unix)]
extern crate libc;

Expand Down Expand Up @@ -198,23 +197,6 @@ pub use unix::read_password_with_reader;
#[cfg(windows)]
pub use windows::read_password_with_reader;

#[deprecated(since = "1.0.0", note = "use `rprompt` crate and `rprompt::read_reply` instead")]
pub fn read_response() -> std::io::Result<String> {
rprompt::read_reply()
}

#[deprecated(since = "1.0.0",
note = "use `rprompt` crate and `rprompt::prompt_reply_stdout` instead")]
pub fn prompt_response_stdout(prompt: &str) -> std::io::Result<String> {
rprompt::prompt_reply_stdout(prompt)
}

#[deprecated(since = "1.0.0",
note = "use `rprompt` crate and `rprompt::prompt_reply_stderr` instead")]
pub fn prompt_response_stderr(prompt: &str) -> std::io::Result<String> {
rprompt::prompt_reply_stderr(prompt)
}

/// Prompts for a password on STDOUT and reads it from STDIN
pub fn prompt_password_stdout(prompt: &str) -> std::io::Result<String> {
let mut stdout = std::io::stdout();
Expand Down

0 comments on commit 0ed0c11

Please sign in to comment.