From 9cc34f9f01dc032cc3b3e14ccb2cc58eafc3cfba Mon Sep 17 00:00:00 2001 From: houseme Date: Fri, 6 Jun 2025 14:35:40 +0800 Subject: [PATCH] improve code for `reqwest` feature --- Cargo.toml | 2 +- crates/obs/Cargo.toml | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c28a939f1..1e9557238 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -142,7 +142,7 @@ reqwest = { version = "0.12.19", default-features = false, features = [ "rustls-tls", "charset", "http2", - "macos-system-configuration", + "system-proxy", "stream", "json", "blocking", diff --git a/crates/obs/Cargo.toml b/crates/obs/Cargo.toml index ce98e73f4..e7677df89 100644 --- a/crates/obs/Cargo.toml +++ b/crates/obs/Cargo.toml @@ -38,16 +38,7 @@ tracing-error = { workspace = true } tracing-opentelemetry = { workspace = true } tracing-subscriber = { workspace = true, features = ["registry", "std", "fmt", "env-filter", "tracing-log", "time", "local-time", "json"] } tokio = { workspace = true, features = ["sync", "fs", "rt-multi-thread", "rt", "time", "macros"] } -reqwest = { workspace = true, optional = true, default-features = false, features = [ - "rustls-tls", - "charset", - "http2", - "macos-system-configuration", - "stream", - "json", - "blocking", - "hickory-dns" -] } +reqwest = { workspace = true, optional = true } serde_json = { workspace = true } sysinfo = { workspace = true } thiserror = { workspace = true }