From f5e48abeac382b184287dc30f1a10459fe9cf3c1 Mon Sep 17 00:00:00 2001 From: Abdulrhman Alkhodiry Date: Tue, 17 Dec 2024 15:17:15 +0300 Subject: [PATCH] Update dependencies in Cargo.toml to disable default features for reqwest and add new feature flags for OpenSSL and Rustls. This enhances control over the used TLS implementation. --- Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 782f74f..de2d7b8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ travis-ci = { repository = "ipinfo/rust", branch = "master" } codecov = { repository = "ipinfo/rust", branch = "master", service = "github" } [dependencies] -reqwest = { version = "0.11", features = ["json"] } +reqwest = { version = "0.11", features = ["json"], default-features = false } lru = "0.12.1" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" @@ -36,3 +36,8 @@ tokio = { version = "1", features = ["rt-multi-thread", "macros"] } [profile.release] overflow-checks = true lto = true + +[features] +default = ["openssl"] +rustls-tls = ["reqwest/rustls-tls"] +openssl = ["reqwest/native-tls"]