Skip to content

Commit

Permalink
build(deps): bump ureq to 3.0.0-rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkna committed Sep 29, 2024
1 parent 8549df2 commit c8c3104
Show file tree
Hide file tree
Showing 3 changed files with 217 additions and 7 deletions.
217 changes: 213 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lolcow-fortune/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ directories = { version = "5.0.1", optional = true }
# Download
flate2 = { version = "1.0.34", optional = true, default-features = false, features = ["rust_backend"] }
tar = { version = "0.4.42", optional = true }
ureq = { version = "2.10.1", optional = true, default-features = false, features = ["tls", "native-certs"] }
ureq = { version = "3.0.0-rc1", optional = true, default-features = false, features = ["rustls"] }

[dependencies.lcowsay]
version = "0.5.10"
Expand Down
5 changes: 3 additions & 2 deletions lolcow-fortune/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@ fn get_project_dir() -> ProjectDirs {
}

fn download() -> Result<(), lolcow_fortune::StrfileError> {
let request = ureq::get("https://github.com/shlomif/fortune-mod/archive/master.tar.gz")
let response = ureq::get("https://github.com/shlomif/fortune-mod/archive/master.tar.gz")
.call()
.map_err(Box::new)?;

let reader = request.into_reader();
let (_, body) = response.into_parts();
let reader = body.into_reader();
let gz_data = GzDecoder::new(reader);
let mut archive = Archive::new(gz_data);

Expand Down

0 comments on commit c8c3104

Please sign in to comment.