eqlabs / pathfinder

A Starknet full node written in Rust
https://eqlabs.github.io/pathfinder/
Other
631 stars 234 forks source link

feat: use rustls instead of native-tls #2210

Closed kkovaacs closed 1 month ago

kkovaacs commented 1 month ago

Currently we're using native-tls which is a bit problematic on Linux. Build time we're linking to the version of OpenSSL that is available on the build host.

For example, Ubuntu 20.04 uses OpenSSL 1.1 so that the release binaries we're building now are linked to that version of the library. That binary won't work on Ubuntu 22.04 (and up) since those versions use OpenSSL 3.0.

This change switches reqwest to use rustls instead (with native certs, meaning we're still using the same certificate store as OpenSSL). This way we're no longer linking to OpenSSL and so our release binaries will be more portable.