Skip to content

WASM testing#4183

Draft
bfops wants to merge 77 commits intomasterfrom
bfops/wasm-test
Draft

WASM testing#4183
bfops wants to merge 77 commits intomasterfrom
bfops/wasm-test

Conversation

@bfops
Copy link
Collaborator

@bfops bfops commented Feb 2, 2026

Description of Changes

Real questions remaining:

  • the expr size changes seem worrying
  • how should the credentials be managed in wasm?

API and ABI breaking changes

Expected complexity level and risk

Testing

thlsrms and others added 21 commits January 21, 2026 19:51
- `DbConnectionBuilder::build` becomes async without tokio's
block_in_place.

Still need to add `web` feature flag.
Renamed the `run_threaded` method on `wasm32` to better reflect its
behavior of spawning a background task.

The generated `DbConnection` methods `run_threaded`, `run_background`,
and `advance_one_message_blocking` now include runtime panics with a
clear error feedback when called on unsupported targets.
Trim down repetitive `cfg` clauses by extracting common lock patterns
into `get_lock_[sync|async]`.
Moves the creation of DbContextImplInner and DbContextImpl into private
helper functions (`build_db_ctx_inner` and `build_db_ctx`) to reduce
duplication between the web and non-web implementations of `build_impl`.
@bfops bfops linked an issue Feb 2, 2026 that may be closed by this pull request
bfops and others added 2 commits March 11, 2026 09:37
Signed-off-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
bfops and others added 4 commits March 13, 2026 13:37
// These types determine the size of [`parse_expr`]'s stack frame.
// These types determine the size of [`parse_expr`]'s stack frame on 64-bit targets.
// Changing their sizes will require updating the recursion limit to avoid stack overflows.
// wasm32 has different type layouts, so this guard does not apply there.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like a (human) reviewer's input here on whether it is reasonable to omit these checks given the comment about stack overflows.

Signed-off-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
.map_err(|source| CredentialFileError::Deserialize { path, source })?;
Ok(Some(creds.token))
#[cfg(feature = "web")]
mod web_mod {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should add some tests for this

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.

Test Rust client SDK WASM target in CI

2 participants