Skip to content

Commit 6886143

Browse files
committed
fix: use old behavior for reqwest
1 parent 936f1de commit 6886143

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

sdk/Cargo.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ rust_native_crypto = [
5353
# Enables default http features for sync and async http resolvers.
5454
default_http = ["http_reqwest", "http_ureq", "http_wasi", "http_wstd"]
5555
# Enable `reqwest` sync http resolver, not supported on WASM/WASI.
56-
http_reqwest_blocking = ["dep:reqwest", "reqwest/blocking"]
56+
http_reqwest_blocking = ["dep:reqwest", "reqwest/blocking", "dep:rustls"]
5757
# Enable `ureq` sync http resolver, not supported on WASM/WASI.
5858
http_ureq = ["dep:ureq"]
5959
# Enable `wasi` sync http resolver, only supported on WASI.
6060
http_wasi = ["dep:wasi"]
6161
# Enable `wstd` async http resolver, only supported on WASI.
6262
http_wstd = ["dep:wstd"]
6363
# Enable `reqwest` async http resolver, not supported on WASI.
64-
http_reqwest = ["dep:reqwest"]
64+
http_reqwest = ["dep:reqwest", "dep:rustls"]
6565

6666
# The diagnostics feature is unsupported and might be removed.
6767
# It enables some low-overhead timing features used in our development cycle.
@@ -200,12 +200,14 @@ sha2 = { version = "0.10.6", features = ["asm"] }
200200

201201
[target.'cfg(not(target_os = "wasi"))'.dependencies]
202202
reqwest = { version = "0.13.1", default-features = false, features = [
203-
# Default features enabled, except `default-tls`->`native-tls` due to licensing.
203+
# Default features enabled, except `rustls`->`rustls-no-provider` due to licensing.
204204
"charset",
205-
"native-tls",
205+
"rustls-no-provider",
206206
"http2",
207207
"system-proxy",
208208
], optional = true }
209+
# Enable `ring` as a provider for `reqwest`.
210+
rustls = { version = "0.23.4", default-features = false, features = ["ring"], optional = true}
209211

210212
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
211213
openssl = { version = "0.10.72", features = ["vendored"], optional = true }

0 commit comments

Comments
 (0)