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

Linking error when following fermyon guide #51

Open skedlukecollier opened 10 months ago

skedlukecollier commented 10 months ago

When following the guide at 3b (https://docs.turso.tech/tutorials/fermyon-spin-rust-setup-guide/#3b-add-code-to-create-a-client-object-and-query-turso-in-srclibrs) I'm getting a linking error rust-lld: error: duplicate symbol: spin-sdk-version-1-5, I found this issue on spin's repository https://github.com/fermyon/spin/issues/1602#issuecomment-1600587166

Which seem's to be the exact issue but can't find it being raised (maybe it's in the discord?)

The advice on the other thread was to use the spin-sdk libsql client

psarna commented 10 months ago

Hm, that looks like a similar issue, but not identical... spin-sdk-language-rust export can be indeed turned off with a feature and is fixed by https://github.com/libsql/libsql-client-rs/commit/6e91e81cb6bc6365d368b6a4cbd78f6616f49c62, but it looks like spin-sdk-version- exports are unconditional. I'll try to figure out how to overcome it when linking