From faa177f8409d5e27f184618563338ff670514bed Mon Sep 17 00:00:00 2001 From: ea935 <201145647+ea935@users.noreply.github.com> Date: Mon, 15 Sep 2025 14:57:33 +0930 Subject: [PATCH 1/2] Make reqwest/rustls-tls optional --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 189e06b6..45f435ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ either = { version = "1.15.0", features = ["serde"] } thiserror = "2.0.12" meilisearch-index-setting-macro = { path = "meilisearch-index-setting-macro", version = "0.29.1" } pin-project-lite = { version = "0.2.16", optional = true } -reqwest = { version = "0.12.22", optional = true, default-features = false, features = ["rustls-tls", "http2", "stream"] } +reqwest = { version = "0.12.22", optional = true, default-features = false, features = ["http2", "stream"] } bytes = { version = "1.10.1", optional = true } uuid = { version = "1.17.0", features = ["v4"] } futures-core = "0.3.31" @@ -44,6 +44,7 @@ wasm-bindgen-futures = "0.4" [features] default = ["reqwest"] reqwest = ["dep:reqwest", "dep:tokio", "pin-project-lite", "bytes"] +tls = ["reqwest/rustls-tls"] futures-unsend = [] [dev-dependencies] From 74c38a4c749a5bb64a057ec5927b5774f2db5cdf Mon Sep 17 00:00:00 2001 From: ea935 <201145647+ea935@users.noreply.github.com> Date: Mon, 15 Sep 2025 15:05:45 +0930 Subject: [PATCH 2/2] make tls feature default --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 45f435ec..38d1f1b2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,7 +42,7 @@ web-sys = "0.3.77" wasm-bindgen-futures = "0.4" [features] -default = ["reqwest"] +default = ["reqwest", "tls"] reqwest = ["dep:reqwest", "dep:tokio", "pin-project-lite", "bytes"] tls = ["reqwest/rustls-tls"] futures-unsend = []