Skip to content

Commit a80d949

Browse files
Remove native-tls dependency from reqwest and SDK
- Set default-features = false for reqwest in workspace Cargo.toml, keeping stream, json, rustls-tls, and http2 features - Fix xtask-llm-benchmark to also disable reqwest default features (was re-enabling native-tls via Cargo feature unification) - Remove native-tls version pin from Rust SDK (no longer needed since nothing depends on native-tls anymore) This fully removes the native-tls -> openssl-sys dependency chain from reqwest 0.12. The only remaining openssl-sys dependency is from git2/libgit2-sys (unrelated to TLS).
1 parent 3f3d1ec commit a80d949

4 files changed

Lines changed: 5 additions & 64 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ rayon = "1.8"
263263
rayon-core = "1.11.0"
264264
rcgen = { version = "0.14.5", features = ["pem", "x509-parser", "crypto", "ring"] }
265265
regex = "1"
266-
reqwest = { version = "0.12", features = ["stream", "json", "rustls-tls"] }
266+
reqwest = { version = "0.12", default-features = false, features = ["stream", "json", "rustls-tls", "http2"] }
267267
rolldown = { git = "https://github.com/rolldown/rolldown.git", tag = "v1.0.0-rc.3" }
268268
rolldown_common = { git = "https://github.com/rolldown/rolldown.git", tag = "v1.0.0-rc.3" }
269269
rolldown_error = { git = "https://github.com/rolldown/rolldown.git", tag = "v1.0.0-rc.3" }

sdks/rust/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ prometheus.workspace = true
3636
rand.workspace = true
3737
tokio.workspace = true
3838
tokio-tungstenite.workspace = true
39-
# native-tls 0.2.17 fails to compile with Rust 1.93.0 due non-exhaustive
40-
# matching in upstream code. Pin until upstream ships a compatible release.
41-
native-tls = "=0.2.14"
4239

4340
[dev-dependencies]
4441
# for quickstart-chat and cursive-chat examples

tools/xtask-llm-benchmark/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dotenvy = "0.15"
2323
async-trait = "0.1.89"
2424
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
2525
urlencoding = "2.1.3"
26-
reqwest = { version = "0.12", features = ["json"] }
26+
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
2727
futures = "0.3.31"
2828
regex = "1"
2929
tempfile = "3.23.0"

0 commit comments

Comments
 (0)