diff --git a/Cargo.toml b/Cargo.toml index dcecd74..72975aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "shticker_book_unwritten" -version = "1.0.2" +version = "1.0.3" authors = ["Dr. Jonathan Helianthicus Doe, IV "] edition = "2018" description = "Minimal CLI launcher for the Toontown Rewritten MMORPG" @@ -12,19 +12,19 @@ categories = ["games"] license = "GPL-3.0-or-later" [dependencies] -bzip2 = "0.3.3" +bzip2 = "0.4.1" rpassword = "4.0.5" -serde = { version = "1.0.107", features = ["derive"] } -serde_json = "1.0.52" -sha-1 = "0.8.2" +serde = { version = "1.0.114", features = ["derive"] } +serde_json = "1.0.57" +sha-1 = "0.9.1" [dependencies.clap] -version = "2.33.0" +version = "2.33.2" default-features = false features = ["suggestions", "vec_map"] [dependencies.reqwest] -version = "0.10.4" +version = "0.10.7" features = ["blocking", "default-tls"] [profile.release] diff --git a/README.md b/README.md index e19b350..c67e40e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![crates.io](https://img.shields.io/crates/v/shticker_book_unwritten)](https://crates.io/crates/shticker_book_unwritten) [![GPL v3+](https://img.shields.io/badge/license-GNU%20GPL%20v3%2B-bd0000)](./LICENSE) [![unsafe forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/) -[![minimum supported rust version 1.39.0](https://img.shields.io/badge/rustc-%3E%3D1.39.0-dea584)](https://rustup.rs/) +[![minimum supported rust version 1.41.0](https://img.shields.io/badge/rustc-%3E%3D1.41.0-dea584)](https://rustup.rs/) [![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/JonathanHelianthicusDoe/shticker_book_unwritten)](https://github.com/JonathanHelianthicusDoe/shticker_book_unwritten) ![shticker\_book\_unwritten logo](./img/shticker_book_unwritten_256x256.png) @@ -30,7 +30,7 @@ You can get pre-compiled binaries from [the releases page][releases] on GitHub. Requires a distribution of [Rust](https://www.rust-lang.org/)/cargo, which you can get from [rustup](https://rustup.rs/). The minimum supported version of -rustc is 1.39.0. +rustc is 1.41.0. ```bash cargo install shticker_book_unwritten @@ -47,7 +47,7 @@ cargo install -f shticker_book_unwritten Requires a distribution of [Rust](https://www.rust-lang.org/)/cargo, which you can get from [rustup](https://rustup.rs/). The minimum supported version of -rustc is 1.39.0. +rustc is 1.41.0. ```bash git clone https://github.com/JonathanHelianthicusDoe/shticker_book_unwritten.git diff --git a/src/update.rs b/src/update.rs index 2b7ea06..62b5472 100644 --- a/src/update.rs +++ b/src/update.rs @@ -574,10 +574,10 @@ fn sha_of_reader( let mut n = buf.len(); while n == buf.len() { n = r.read(buf)?; - sha.input(&buf[..n]); + sha.update(&buf[..n]); } - Ok(sha.result().into()) + Ok(sha.finalize().into()) } fn sha_of_file_by_path>( @@ -592,10 +592,10 @@ fn sha_of_file_by_path>( n = file.read(buf).map_err(|ioe| { Error::FileReadError(path.as_ref().to_path_buf(), ioe) })?; - sha.input(&buf[..n]); + sha.update(&buf[..n]); } - Ok(sha.result().into()) + Ok(sha.finalize().into()) } fn sha_from_hash_str>(hash_str: S) -> Result<[u8; 20], Error> {