From d4b90d949bc9944c07be8b7015f82aca4f2c1e25 Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Tue, 7 Jan 2025 17:33:36 +0100 Subject: [PATCH] Simplify deps by letting reqwest deal with rustls (ring vs aws-lc-rs). (#88) * Simplify deps by letting reqwest deal with rustls (ring vs aws-lc-rs). * Trying to see the error in DL. * Trying to nail the issue. * More test. * Trying to trigger more frequently. * Oops. * ?? * ?? * ?? * Cargo feature syntax. * Tmp * Tokio needs sync ? * It's hard to track.. * Can we trust tokio::fs ? * Remove the extra check. * Requires flush? * Cancel the other unrelated changes. --- Cargo.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9eadaac..bd7ae95 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,7 +28,6 @@ reqwest = { version = "0.12.2", optional = true, default-features = false, featu "json", "stream", ] } -rustls = { version = "0.23.4", optional = true } serde = { version = "1", features = ["derive"], optional = true } serde_json = { version = "1", optional = true } thiserror = { version = "2", optional = true } @@ -43,8 +42,8 @@ native-tls = { version = "0.2.12", optional = true } default = ["default-tls", "tokio", "ureq"] # These features are only relevant when used with the `tokio` feature, but this might change in the future. default-tls = ["native-tls"] -native-tls = ["dep:reqwest", "reqwest/default", "dep:native-tls", "ureq/native-tls"] -rustls-tls = ["dep:rustls", "reqwest/rustls-tls"] +native-tls = ["dep:reqwest", "reqwest?/default", "dep:native-tls", "dep:ureq", "ureq?/native-tls"] +rustls-tls = ["reqwest?/rustls-tls"] tokio = [ "dep:futures", "dep:indicatif",