libsql icon indicating copy to clipboard operation
libsql copied to clipboard

libsql: add `tls` feature

Open LucioFranco opened this issue 1 year ago • 1 comments

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 avatar Aug 12 '24 19:08 LucioFranco

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

LucioFranco avatar Aug 13 '24 20:08 LucioFranco