From 2a9705ad06d44e4a140116a967c91e7588c820be Mon Sep 17 00:00:00 2001 From: Bas Zalmstra Date: Tue, 26 Sep 2023 11:04:22 +0200 Subject: [PATCH] feat: use rusttls feature --- crates/rattler_installs_packages/Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/rattler_installs_packages/Cargo.toml b/crates/rattler_installs_packages/Cargo.toml index b39c6331..bb54abfe 100644 --- a/crates/rattler_installs_packages/Cargo.toml +++ b/crates/rattler_installs_packages/Cargo.toml @@ -11,6 +11,11 @@ license.workspace = true readme.workspace = true rust-version.workspace = true +[features] +default = ["native-tls"] +native-tls = ['reqwest/native-tls'] +rustls-tls = ['reqwest/rustls-tls'] + [dependencies] async-trait = "0.1.73" bytes = "1.5.0" @@ -31,7 +36,7 @@ pep440 = "0.2.0" pin-project-lite = "0.2.13" rattler_digest = { version = "0.9.0", features = ["serde"] } regex = "1.9.5" -reqwest = { version = "0.11.20", features = ["json", "stream"] } +reqwest = { version = "0.11.20", default-features = false, features = ["json", "stream"] } serde = "1.0.188" serde_json = "1.0.107" serde_with = "3.3.0"