Skip to content

Commit b0d97f3

Browse files
committed
chore: update ureq to 3.x
1 parent f786810 commit b0d97f3

File tree

3 files changed

+53
-25
lines changed

3 files changed

+53
-25
lines changed

Cargo.lock

+49-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nginx-sys/Cargo.toml

+2-9
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,10 @@ cc = "1.2.0"
2222
duct = { version = "0.13.7", optional = true }
2323
dunce = "1.0.5"
2424
flate2 = { version = "1.0.28", optional = true }
25-
# Disable non-ASCII domain names support in ureq. We don't need it for any
26-
# of the 4 domains the buildscript interacts with.
27-
# See https://github.com/servo/rust-url/issues/993
28-
idna_adapter = { version = "~1.0", optional = true }
2925
regex = "1.11.1"
3026
tar = { version = "0.4.40", optional = true }
31-
ureq = { version = "2.9.6", features = ["tls"], optional = true }
27+
ureq = { version = "3.0.10", optional = true }
3228
which = { version = "7.0.0", optional = true }
3329

3430
[features]
35-
vendored = [
36-
"dep:which", "dep:duct", "dep:idna_adapter", "dep:ureq", "dep:flate2",
37-
"dep:tar"
38-
]
31+
vendored = ["dep:which", "dep:duct", "dep:ureq", "dep:flate2", "dep:tar"]

nginx-sys/build/vendored.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ fn download(cache_dir: &Path, url: &str) -> Result<PathBuf, Box<dyn StdError>> {
368368
let file_path = cache_dir.join(filename);
369369
if proceed_with_download(&file_path) {
370370
println!("Downloading: {} -> {}", url, file_path.display());
371-
let mut reader = ureq::get(url).call()?.into_reader();
371+
let mut response = ureq::get(url).call()?;
372+
let mut reader = response.body_mut().as_reader();
372373
let mut file = File::create(&file_path)?;
373374
std::io::copy(&mut reader, &mut file)?;
374375
}

0 commit comments

Comments
 (0)