From 55a12c638064738d12cd1a643e415f3a7d3db662 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Thu, 30 Jan 2025 20:06:19 +0100 Subject: [PATCH] self_update: Enable GZip support --- Cargo.lock | 21 +++++++++++++++++++++ Cargo.toml | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index e12d43c..bbb9e87 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -745,6 +745,15 @@ version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "19d374276b40fb8bbdee95aef7c7fa6b5316ec764510eb64b8dd0e2ed0d7e7f5" +[[package]] +name = "crc32fast" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" +dependencies = [ + "cfg-if", +] + [[package]] name = "crossbeam-deque" version = "0.8.6" @@ -1039,6 +1048,16 @@ dependencies = [ "windows-sys 0.59.0", ] +[[package]] +name = "flate2" +version = "1.0.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c936bfdafb507ebbf50b8074c54fa31c5be9a1e7e5f467dd659697041407d07c" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + [[package]] name = "flume" version = "0.11.1" @@ -3493,6 +3512,8 @@ version = "0.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d832c086ece0dacc29fb2947bb4219b8f6e12fe9e40b7108f9e57c4224e47b5c" dependencies = [ + "either", + "flate2", "hyper", "indicatif", "log", diff --git a/Cargo.toml b/Cargo.toml index bc3d5c7..593b104 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ reqwest = { version = "=0.12.12", default-features = false, features = ["rustls- rust_decimal = "=1.36.0" rust_decimal_macros = "=1.36.0" secrecy = "=0.10.3" -self_update = { version = "=0.42.0", default-features = false, features = ["archive-tar", "rustls"] } +self_update = { version = "=0.42.0", default-features = false, features = ["compression-flate2", "rustls"] } serde = { version = "=1.0.217", features = ["derive"] } serde_json = "=1.0.137" sqlx = { version = "=0.8.3", features = ["runtime-tokio", "sqlite"] }