Skip to content

Commit a544236

Browse files
dkijaniaclaude
andcommitted
release-manager: switch reqwest from native-tls to rustls-tls
The musl static build in `release.yml` failed on the v0.0.0-test smoke tag because release-manager transitively pulls in `openssl-sys` via reqwest's default `native-tls` backend, and musl-targeted OpenSSL isn't available on the runner: error: failed to run custom build command for `openssl-sys v0.9.109` warning: openssl-sys@0.9.109: Could not find directory of OpenSSL installation, and this `-sys` crate cannot proceed without this knowledge. Fix: `default-features = false` + `rustls-tls` on reqwest. Pure-Rust TLS, no system OpenSSL link, no `*-sys` crate compiled — same pattern mina-bench-upload already uses for its influxdb2 client. Cargo.lock regenerated; verified `openssl-sys`, `native-tls`, and `hyper-tls` are all gone from the lockfile. This is the last remaining gap before the release workflow can ship a static-musl `.deb` portable across bullseye/focal/jammy/noble/ bookworm. Push v0.0.0-test (force) after this lands to retest. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent fe37fec commit a544236

2 files changed

Lines changed: 70 additions & 126 deletions

File tree

release-manager/Cargo.lock

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

release-manager/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ hex = "0.4"
3333

3434
[dependencies.reqwest]
3535
version = "0.11"
36-
features = ["json", "stream"]
36+
# default-features = false drops the native-tls / openssl-sys
37+
# dependency that breaks musl static builds. `rustls-tls` gives us
38+
# back HTTPS support in pure Rust, matching the pattern
39+
# mina-bench-upload already follows with its influxdb2 feature pin.
40+
default-features = false
41+
features = ["json", "stream", "rustls-tls"]
3742

3843
[dev-dependencies]
3944
tokio-test = "0.4"

0 commit comments

Comments
 (0)