Use rustls instead of OpenSSL; release 0.2.1#33
Conversation
The v0.2.0 release build failed on x86_64-unknown-linux-musl: reqwest's default native-tls pulls in openssl-sys, which can't link when cross-compiling to musl (no musl OpenSSL on the runner). Switch reqwest to rustls-tls with default-features disabled (keeping json/gzip/brotli/deflate/charset/http2). This drops openssl-sys entirely, so musl builds cleanly and the other targets no longer depend on system OpenSSL. Bump to 0.2.1. Verified: cargo build + full test suite pass, openssl-sys gone from the lockfile, rustls present. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
WalkthroughThis PR updates the Cargo.toml configuration for the fossapi crate. The package version is bumped from 0.2.0 to 0.2.1. The reqwest HTTP client dependency is reconfigured to disable default features and explicitly enable rustls-tls alongside json, gzip, brotli, deflate, and http2 features. This configuration change allows the crate to use Rust-native TLS instead of the default OpenSSL for cross-platform compatibility. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
The v0.2.0 release build failed on x86_64-unknown-linux-musl:
reqwest's defaultnative-tlsfeature pulls inopenssl-sys, which can't link when cross-compiling to musl (no musl OpenSSL on the runner). The gnu/macOS builds passed because they have system OpenSSL.Switch
reqwesttorustls-tlswithdefault-features = false(keepingjson/gzip/brotli/deflate/charset/http2). This removesopenssl-sysfrom the tree entirely, so musl builds cleanly and no target depends on system OpenSSL anymore. Bumps version to 0.2.1.Test plan
cargo buildand the full test suite (103 + integration tests) pass.openssl-sysgone fromCargo.lock;rustlspresent.After merge
Tag
v0.2.1onmainto trigger the release (the v0.2.0 tag's build failed, so nothing was published under 0.2.0).🤖 Generated with Claude Code