Skip to content

libsql: add tls feature#244

Open
coco-speed wants to merge 90 commits intomainfrom
upstream/lucio/resolve-solana-build
Open

libsql: add tls feature#244
coco-speed wants to merge 90 commits intomainfrom
upstream/lucio/resolve-solana-build

Conversation

@coco-speed
Copy link
Collaborator

This pull request was created automatically by CodSpeed to track performance changes of the pull request tursodatabase/libsql#1663.

The original branch is upstream/lucio/resolve-solana-build

ignatz and others added 30 commits August 1, 2024 13:40
A few notes: I went the path of least resistance also assuming it would
break fewer folks, i.e. make Row more like Rows and thus usize -> i32.

Arguably, an unsigned type might be more appropriate both for length and
indexes. I understand that the i32 stems from the sqlite bindings, which
returns/accepts c_ints. Yet, Statement and Row made the jump to an
unsigned, probably drawing the same conclusion, whereas Rows preserved
its proximity to the c-bindings. This is probably an artifact?

Also going on a limb, mapping c_int -> i32 is already a non-portable
choice, with precision for c_int being platform dependent.
we don't actually care, but let's do it for completeness
…h-fix-vacuum

fix behaviour of VACUUM for vector indices to make rowid consistent between shadow tables and base table
sivukhin and others added 30 commits August 8, 2024 19:40
…h-allow-partial-index

Vector search allow partial index
This adds a new replicated struct that is output during sync for the C
bindings.
necessary to pass different underlying frames
…h-compression

vector search: neighbors compression (1bit quantization)
…h-fix-idx-type

vector search: fix idx type bug
…h-fix-null

vector search: fix delete of rows with NULL vector value
…-c-bindings

c: add replicated data for sync
- error C2036: 'void *': unknown size ...
…build

windows compiler complains about operations with void* pointers
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants