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

Use opfs-sahpool from diesel, remove sqlite-web #1676

Closed
wants to merge 11 commits into from

Conversation

insipx
Copy link
Contributor

@insipx insipx commented Feb 27, 2025

Confirmed working by running browser-sdk tests with these lines removed

Also comes with a pretty huge performance improvement for web, since the wasm -> js barrier within libxmtp is removed

@rygine this will now require the emscripten SDK to build the wasm bindings, should just be brew install emscripten. The buildscript in sqlite dependency compiles it from source. I'd prefer it this way just for security reasons, and also the ability to eventually link to our own version of sqlite/libc -- might be able to make the binary size smaller

  • fixes a test hanging the CI webassembly tests intermittently (Wasm test should be more reliable in CI)
  • xtask crate no longer required since wasm build is self-contained and doesn't need special flags (can be built with wasm-pack)
  • EncryptedMessageStore constructor no longer needs to be async
  • adds a dev/test/browser-sdk script, which clones xmtp-js/browser sdk and tests it with the latest wasm bindings using nix

fixes #1659

this means we no longer need to maintain https://github.com/xmtp/sqlite-web-rs

@insipx insipx requested review from a team as code owners February 27, 2025 21:43
@insipx insipx marked this pull request as draft February 27, 2025 22:27
@insipx insipx force-pushed the insipx/no-coop-headers branch 4 times, most recently from dbdb7b4 to 1baf234 Compare February 28, 2025 15:13
@insipx insipx marked this pull request as ready for review February 28, 2025 16:49
insipx and others added 7 commits February 28, 2025 14:57
* clean up a bunch of v2 stuff

* clean up of v2 libraries

* fix up lint

* cargo fmt

* reorder file
* add hmac keys for conversation

* Add conversation hmac keys test

* Use Uint8Array for HmacKey key

* Minor cleanup

* Return Vec instead of HashMap

* write an ffi test

---------

Co-authored-by: Ry Racherbaumer <ry@xmtp.com>
…er-sdk with the latest wasm compiled in libxmtp
@insipx
Copy link
Contributor Author

insipx commented Mar 3, 2025

screwed up a merge re-opened in #1690

@insipx insipx closed this Mar 3, 2025
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.

dont require COOP/COEP headers (cross origin isolation)
2 participants