xmtp / libxmtp

LibXMTP is a shared library encapsulating the core functionality of the XMTP messaging protocol, such as cryptography, networking, and language bindings.
MIT License
40 stars 18 forks source link

add `serialize` and `deserialize` functions to `diesel-wasm-sqlite` backend #1003

Open insipx opened 2 weeks ago

insipx commented 2 weeks ago

Serialize docs: https://sqlite.org/c3ref/serialize.html Deserialize docs: https://sqlite.org/c3ref/deserialize.html SQLite WASM: https://www.sqlite.org/wasm sqlite3 WebAssembly C-Style API documentation: https://www.sqlite.org/wasm/doc/trunk/api-c-style.md wasm-bindgen (rust -> js ffi) docs: https://rustwasm.github.io/wasm-bindgen/reference/attributes/on-js-imports/index.html

the serialize and deserialize methods on RawConnection are commented out: https://github.com/xmtp/libxmtp/blob/bb18b61df2e310b7c23ad222cb2c167fa9b28ae9/diesel-wasm-sqlite/src/connection/raw.rs#L89

They still use the raw C-bindings from libsqlite3-sys rust crate. We want to convert these to use the WASM bindings.

vking45 commented 2 weeks ago

Hey, I would like to work on this issue. Can you please assign this issue to me ?

Update (31/08/2024) - I have opened up a PR for the same @insipx

codabrink commented 2 days ago

Picking up this issue where @vking45 left off.