mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 20:28:02 +00:00
Switch from ureq to reqwest::blocking
This commit is contained in:
parent
0890725d1b
commit
ea8bb8820b
3 changed files with 387 additions and 29 deletions
|
@ -17,7 +17,7 @@ flate2 = "1.0.24"
|
|||
walkdir = "2.3.2"
|
||||
blake3 = "1.3.1"
|
||||
base64-url = "1.4.13"
|
||||
ureq = "2.5.0"
|
||||
reqwest = { version = "0.11.13", features = [ "blocking", "rustls-tls" ] }
|
||||
|
||||
bumpalo.workspace = true
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
use blake3::Hasher;
|
||||
use reqwest::Method;
|
||||
use std::io::{self, ErrorKind, Read, Write};
|
||||
|
||||
use crate::tarball::Compression;
|
||||
|
@ -111,12 +112,10 @@ pub enum Problem {
|
|||
actual: String,
|
||||
},
|
||||
IoErr(io::Error),
|
||||
HttpErr(ureq::Error),
|
||||
HttpErr(reqwest::Error),
|
||||
InvalidUrl(UrlProblem),
|
||||
/// The Content-Length header of the response exceeded max_download_bytes
|
||||
DownloadTooBig(usize),
|
||||
InvalidContentLengthHeader,
|
||||
MissingContentLengthHeader,
|
||||
DownloadTooBig(u64),
|
||||
}
|
||||
|
||||
/// Download and decompress the given URL, verifying its contents against the hash in the URL.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue