Skip to content

Commit d9b74d0

Browse files
authored
Remove default dependencies on ring, webpki-roots (Azure#2090)
Since `reqwest` 0.12.9 (based on our current Cargo.lock) uses `native-tls` by default, with these changes we no longer have a dependency on `ring` or `webpki-roots`. See <https://github.com/seanmonstar/reqwest/blob/v0.12.9/README.md#requirements>.
1 parent c31b6e9 commit d9b74d0

File tree

3 files changed

+44
-36
lines changed

3 files changed

+44
-36
lines changed

Cargo.lock

Lines changed: 39 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/core/azure_core/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,11 @@ xml = ["typespec_client_core/xml"]
5757
features = [
5858
"hmac_openssl",
5959
"hmac_rust",
60+
"reqwest",
6061
"reqwest_gzip",
6162
"reqwest_rustls",
62-
"reqwest",
6363
"test",
6464
"tokio_fs",
65+
"tokio_sleep",
6566
"xml",
6667
]

sdk/typespec/typespec_client_core/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ tracing-subscriber.workspace = true
4646
typespec_macros.path = "../typespec_macros"
4747

4848
[features]
49-
default = ["http", "json", "reqwest", "reqwest_gzip", "reqwest_rustls"]
49+
default = ["http", "json", "reqwest", "reqwest_gzip"]
5050
derive = ["dep:typespec_macros"]
5151
http = ["dep:http-types", "typespec/http"]
5252
json = ["typespec/json"]
53-
reqwest = ["dep:reqwest", "reqwest/default-tls"]
53+
reqwest = ["dep:reqwest"]
5454
reqwest_gzip = ["reqwest/gzip"]
55-
reqwest_rustls = ["reqwest/rustls-tls"]
55+
reqwest_rustls = ["reqwest/rustls-tls-native-roots"]
5656
tokio_fs = ["tokio/fs", "tokio/sync", "tokio/io-util"]
5757
tokio_sleep = ["tokio/time"]
5858
xml = ["dep:quick-xml"]

0 commit comments

Comments
 (0)