Skip to content

Commit 657a4d3

Browse files
meili-bors[bot]ea935curquiza
authored
Merge #706
706: Make `reqwest/rustls-tls` an optional feature r=curquiza a=ea935 # Pull Request ## Related issue Fixes #705 ## What does this PR do? - Removes `reqwest/rustls-tls` as a required feature for the `meilisearch/reqwest` feature. - Adds the feature `meilisearch/tls` which enables `reqwest/rustlts-tls` ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a "tls" feature (alias to the Rustls TLS provider) and enabled it in the default feature set so HTTPS via Rustls is available by default. * **Chores** * Updated networking dependency features to retain HTTP/2 and streaming while moving TLS behind the new "tls" feature. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: ea935 <[email protected]> Co-authored-by: Clémentine <[email protected]>
2 parents 606dfff + 28a29a8 commit 657a4d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ either = { version = "1.15.0", features = ["serde"] }
2424
thiserror = "2.0.12"
2525
meilisearch-index-setting-macro = { path = "meilisearch-index-setting-macro", version = "0.29.1" }
2626
pin-project-lite = { version = "0.2.16", optional = true }
27-
reqwest = { version = "0.12.22", optional = true, default-features = false, features = ["rustls-tls", "http2", "stream"] }
27+
reqwest = { version = "0.12.22", optional = true, default-features = false, features = ["http2", "stream"] }
2828
bytes = { version = "1.10.1", optional = true }
2929
uuid = { version = "1.17.0", features = ["v4"] }
3030
futures-core = "0.3.31"
@@ -42,8 +42,9 @@ web-sys = "0.3.77"
4242
wasm-bindgen-futures = "0.4"
4343

4444
[features]
45-
default = ["reqwest"]
45+
default = ["reqwest", "tls"]
4646
reqwest = ["dep:reqwest", "dep:tokio", "pin-project-lite", "bytes"]
47+
tls = ["reqwest/rustls-tls"]
4748
futures-unsend = []
4849

4950
[dev-dependencies]

0 commit comments

Comments
 (0)