Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port sqlite-libsql to new libsql client #2148

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

itowlson
Copy link
Collaborator

@itowlson itowlson commented Dec 7, 2023

Using a git reference for testing - a release is promised soon.

This should address all the dreaded sqlite3-parser build errors that have affected downstream consumers of the Spin runtime when Cargo has helpfully locked them to a more recent version of libsql-client-rs.

@@ -13,5 +13,5 @@ rusqlite = { version = "0.29.0", features = [ "bundled" ] }
spin-sqlite = { path = "../sqlite" }
spin-world = { path = "../world" }
sqlparser = "0.34"
libsql-client = { version = "0.31.5", features = ["reqwest_backend"], default_features = false }
libsql = { git = "https://github.com/tursodatabase/libsql", rev = "c5765fe3770023ead42b0839527f6bc02161e224" }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
libsql = { git = "https://github.com/tursodatabase/libsql", rev = "c5765fe3770023ead42b0839527f6bc02161e224" }
libsql = { git = "https://github.com/tursodatabase/libsql", rev = "c5765fe3770023ead42b0839527f6bc02161e224", feature = ["remote"], default-features = false }

Applying this should make libsql much easier to compile since it won't compile any of the C code and it will only build the http based code.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LucioFranco At the moment, it looks like it's still pulling in libsql-sys and thereby libsql-ffi which are failing on Windows. I've done a cargo update but it's still showing up as a libsql dependency (and nothing else seems to be bringing those crates in). Any advice appreciated - thanks!

@itowlson itowlson force-pushed the libsql-new-library branch 5 times, most recently from 2b2d9a1 to a5109eb Compare December 12, 2023 21:29
@itowlson itowlson marked this pull request as ready for review December 17, 2023 22:03
@itowlson itowlson requested review from dicej, rylev and vdice December 17, 2023 22:03
@itowlson
Copy link
Collaborator Author

The 0.2 release looks to be taking a while so putting this out for review anyway

Signed-off-by: itowlson <ivan.towlson@fermyon.com>
@itowlson itowlson enabled auto-merge December 18, 2023 19:45
@itowlson itowlson merged commit cb29f47 into spinframework:main Dec 18, 2023
8 checks passed
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.

3 participants