tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.
https://turso.tech/libsql
MIT License
9.54k stars 252 forks source link

libsql: add `tls` feature #1663

Closed LucioFranco closed 1 week ago

LucioFranco commented 1 month ago

This adds a new tls feature that is enabled by default, if this feature is disabled building a libsql connection will panic with a message asking you to configure a http connector. This allows users to bring their own http connector and more importantly their own TLS lib with their own versions without needing to compile rustls which we use by default.

This resolves solana-sdk >2 build issues with uses an older version of curve25519-dalek that pings zeroize to <1.4. New versions of rustls require 1.7 of zeroize thus causing issues when building rustls for libsql with the tls feature.

LucioFranco commented 1 month ago

I believe this is a breaking change but it should affect very little users only those that disable default features.