From 74638ec273fac67d0f4bf5c2c541dd281aba2510 Mon Sep 17 00:00:00 2001 From: tottoto Date: Wed, 11 Feb 2026 21:18:29 +0900 Subject: [PATCH] examples: Disable unused reqwest feature (#3654) --- examples/Cargo.lock | 56 ---------------------------- examples/reqwest-response/Cargo.toml | 2 +- examples/sse/Cargo.toml | 2 +- 3 files changed, 2 insertions(+), 58 deletions(-) diff --git a/examples/Cargo.lock b/examples/Cargo.lock index b6847dbf..484d967f 100644 --- a/examples/Cargo.lock +++ b/examples/Cargo.lock @@ -2342,22 +2342,6 @@ dependencies = [ "webpki-roots 1.0.6", ] -[[package]] -name = "hyper-tls" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" -dependencies = [ - "bytes", - "http-body-util", - "hyper", - "hyper-util", - "native-tls", - "tokio", - "tokio-native-tls", - "tower-service", -] - [[package]] name = "hyper-util" version = "0.1.20" @@ -2376,11 +2360,9 @@ dependencies = [ "percent-encoding", "pin-project-lite", "socket2 0.5.10", - "system-configuration", "tokio", "tower-service", "tracing", - "windows-registry", ] [[package]] @@ -3640,21 +3622,16 @@ checksum = "9d0946410b9f7b082a427e4ef5c8ff541a88b357bc6c637c40db3a68ac70a36f" dependencies = [ "base64 0.22.1", "bytes", - "encoding_rs", "futures-core", "futures-util", - "h2", "http", "http-body", "http-body-util", "hyper", "hyper-rustls", - "hyper-tls", "hyper-util", "js-sys", "log", - "mime", - "native-tls", "percent-encoding", "pin-project-lite", "quinn", @@ -3665,7 +3642,6 @@ dependencies = [ "serde_urlencoded", "sync_wrapper", "tokio", - "tokio-native-tls", "tokio-rustls", "tokio-util", "tower", @@ -4401,27 +4377,6 @@ dependencies = [ "syn", ] -[[package]] -name = "system-configuration" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b" -dependencies = [ - "bitflags", - "core-foundation", - "system-configuration-sys", -] - -[[package]] -name = "system-configuration-sys" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" -dependencies = [ - "core-foundation-sys", - "libc", -] - [[package]] name = "tagptr" version = "0.2.0" @@ -5281,17 +5236,6 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" -[[package]] -name = "windows-registry" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720" -dependencies = [ - "windows-link", - "windows-result", - "windows-strings", -] - [[package]] name = "windows-result" version = "0.4.1" diff --git a/examples/reqwest-response/Cargo.toml b/examples/reqwest-response/Cargo.toml index 3ea740e3..3c930b8f 100644 --- a/examples/reqwest-response/Cargo.toml +++ b/examples/reqwest-response/Cargo.toml @@ -6,7 +6,7 @@ publish = false [dependencies] axum = { path = "../../axum" } -reqwest = { version = "0.12", features = ["stream"] } +reqwest = { version = "0.12", default-features = false, features = ["stream"] } tokio = { version = "1.0", features = ["full"] } tokio-stream = "0.1" tower-http = { version = "0.6.1", features = ["trace"] } diff --git a/examples/sse/Cargo.toml b/examples/sse/Cargo.toml index 3f2b927d..bd605fca 100644 --- a/examples/sse/Cargo.toml +++ b/examples/sse/Cargo.toml @@ -17,5 +17,5 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] } [dev-dependencies] eventsource-stream = "0.2" -reqwest = { version = "0.12", features = ["stream"] } +reqwest = { version = "0.12", default-features = false, features = ["stream"] } reqwest-eventsource = "0.6"