tursodatabase / tursodatabase/libsql

Regression: Cannot use libsql remote in wasm contexts

Open
#1,882 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
17.2k
Forks
531
Avg merge
1h 12m
Merged PRs (30d)
1

Description

When turning on the libsql remote feature flag, the mio dependency gets added via tokio.

This breaks WASM compilation.
So currently the WASM feature flag only allows local usage but not connecting to a remote turso instance.

In the past this worked (eg thats why the cloudflare feature exists) but regressed over time...

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the libsql remote feature flag and trace how tokio brings in mio during WASM compilation. Compare the current setup with the cloudflare feature, which the issue identifies as historical context. Done means WASM builds with remote enabled and can connect to a remote Turso instance.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, sqlite, wasm
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.