tursodatabase / libsql-client-rs

libSQL Rust client library can be used to communicate with sqld natively over HTTP protocol with native Rust interface.
MIT License
75 stars 27 forks source link

Issue with Fermyon Spin 1.5.0 #49

Open seungjin opened 11 months ago

seungjin commented 11 months ago

Fermyon Spin released new SDK 1.5.0 and current libsql-client-rs is based on 1.4.1 (https://github.com/libsql/libsql-client-rs/blob/f0f9bd21e7e0e74562add8b605c18b4716c99a98/Cargo.toml#L18). It gets me a compile error in Spin side when I use Spin 1.5.0 with current libsql-client-rs:

Error: Failed to instantiate component 'Foo'

Caused by:
   0: decoding custom section component-type:reactor
   1: unexpected end-of-file (at offset 0x3a51)
psarna commented 11 months ago

Thanks for reporting! Just bumped spin-sdk dependency to 1.5 and retested, let me know if there are any further issues

dangdennis commented 10 months ago

@psarna Tagging along here too. Will you be able to upgrade to spin 2.0 now?

I encountered this error note: rust-lld: error: duplicate symbol: cabi_realloc when I tried to build with libsql-client 0.32.0 and spin sdk 2.0.

I don't have much more context or any seemingly helpful stack traces to share.

seungjin commented 10 months ago

Oh..I also made this: https://github.com/libsql/libsql-client-rs/issues/55 Seems duplicated.

Also did PR: https://github.com/libsql/libsql-client-rs/pull/57