Skip to content

feat(sqlite): add wasm32 support#3

Open
nikzen wants to merge 1 commit into
mainfrom
sqlite-changes
Open

feat(sqlite): add wasm32 support#3
nikzen wants to merge 1 commit into
mainfrom
sqlite-changes

Conversation

@nikzen
Copy link
Copy Markdown

@nikzen nikzen commented Jun 4, 2026

Add a wasm32-unknown-unknown backend to matrix-sdk-sqlite. On WASM the stores use a single rusqlite connection backed by the OPFS sahpool VFS instead of a deadpool connection pool, since the module runs inside a single Web Worker.

Add a `wasm32-unknown-unknown` backend to `matrix-sdk-sqlite`. On WASM
the stores use a single `rusqlite` connection backed by the OPFS
`sahpool` VFS instead of a `deadpool` connection pool, since the module
runs inside a single Web Worker.

The native deadpool implementation, its documentation and the on-disk
serialization formats are left unchanged; WASM support is added purely
behind `cfg(target_family)`.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant