Skip to content

chore(deps): update Wasmer to 4b71ca8e2ca - #585

Merged
syrusakbary merged 1 commit into
mainfrom
deps/wasmer-4b71ca8
Nov 7, 2026
Merged

syrusakbary merged 1 commit into
mainfrom
deps/wasmer-4b71ca8

Conversation

@syrusakbary

Copy link
Copy Markdown
Member

Moves every wasmerio/wasmer.git dependency in the root Cargo.toml from 135e1dd018e (the head of wasmerio/wasmer#7145) to 4b71ca8e2ca, the head of codex/sdk-core-integration after Wasmer main was merged into it. That covers the nine Wasmer crates, wasmer-wasix-types, and the wasmer/wasmer-wasix overrides in the [patch."…napi.git"] section. In Cargo.lock, only the 15 Wasmer git entries change.

wasmer-napi stays at 961566eb, because 4b71ca8e2ca pins the same NAPI commit.

What the new revision brings

Apart from those, the two trees differ only by one Makefile CI target.

Memory

This uses the same harness as #581: a cold load of wasmer/edgejs, then one edge run, on macOS arm64 with Node 26. Values are medians of 3 runs, in MiB; the SDK memory figures were identical across runs.

main this PR
SDK linear memory after load 172 141
SDK linear memory after one run 172 141
Physical footprint after load 229 210
RSS after load 283 264

The 78 MB package image first reserves 64 MiB, then regrows once to its full size. Both buffers are live during that copy, which accounts for the 141. #581 quoted 91 MiB for an earlier, uncapped version of the presize change. The cap gives up some of that gain so that an untrusted Content-Length cannot grow memory by itself.

Tests (macOS arm64)

  • cargo +1.99.1 test --locked -p wasmer-sdk --all-targets: pass (44 tests).
  • cargo +1.99.1 test --locked -p wasmer-sdk-uniffi --lib: pass.
  • npm run build: pass. Wasm size is 5.08 MB raw and 1.27 MB Brotli, the same as main.
  • npm test: 52 tests in 14 groups pass.
  • npm run test:bindgen: 12 tests pass.
  • npm run test:edgejs on Node 24 (the CI version): 2 tests pass. On Node 26 the runner exits at startup with bad option: --experimental-wasm-jspi, so that flag needs updating separately.
  • Browser tests on Node 24, each file run separately: every Chromium and WebKit case passes. That covers package CORS, progress, definition, module digest, Python, service worker, Node compat/Express and PostgreSQL. Every Firefox case fails locally because Playwright's Firefox does not launch on this machine: browserType.launch times out after a macOS sandbox "Operation not permitted" error, and a bare launch outside the tests also hangs. fix(js): load cached packages without whole-file JavaScript buffers #581 saw the same Firefox CORS timeout on main.

Not run locally: the Swift and Python suites, the UniFFI bindgen-cli build, and the wasmer-sh example tests. CI runs these.

🤖 Generated with Claude Code

Move every wasmerio/wasmer.git dependency, including the NAPI patch
section, from 135e1dd018e (the head of wasmerio/wasmer#7145) to
4b71ca8e2ca, the current head of codex/sdk-core-integration. That
revision merges Wasmer main into the branch, bringing:

- wasmerio/wasmer#7148: modules share their binary instead of copying
  it. This is the change #579 already pinned through #7145, now landed
  on main; the module code is identical between the two revisions.
- wasmerio/wasmer#7149: the web HTTP client reads bodies chunk by chunk
  into one presized buffer, reserving at most 64 MiB from
  Content-Length before the body arrives.
- fix(wasix): log package cache hits again.

wasmer-napi stays at 961566eb, the NAPI commit this Wasmer revision
also pins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wasmer

wasmer Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

The latest updates on your Wasmer apps. Learn more about Wasmer for Github.

Project Deployment Actions Commit Updated (UTC)
wasmer-examples-wasmer-sh Ready Ready Preview a6042db Nov 7, 2026 8:27pm
wasmer-sh-service-worker Ready Ready Preview a6042db Nov 7, 2026 8:26pm

@syrusakbary
syrusakbary merged commit 2c6b264 into main Nov 7, 2026
10 checks passed
@syrusakbary
syrusakbary deleted the deps/wasmer-4b71ca8 branch November 7, 2026 20:43
syrusakbary added a commit that referenced this pull request Nov 7, 2026
Brings main's SDK work (up to ddbd6cd) to the GUI/WebGPU branch: the
Wasmer 4b71ca8 and NAPI 961566e pins (#576, #585), module digests hashed
once with a caller-supplied SHA-256 and the browser's native digest
(#576), worker retirement, kill/timeout/close fixes and guest memory
budgets (#578, #579, #581, #582, #583), and one memory-buffer read per
wasm-bindgen view check (#559).

Conflicts:
- Cargo.toml: main's Wasmer and NAPI revisions; this branch's gui
  (41dac65) and webgpu (c65e1e3) pins. Cargo.lock regenerated from
  main's, keeping this branch's versions for the gui-only crates.
- packages/napi: main's 961566e (a descendant of this branch's 18209d2).
- rust/src/process.rs: force_exit closes the process's GUI scope, then
  kills it and asks the task manager to stop its executors (#556).
- rust/src/client.rs: main's progress assertion over per-package events.
- js/bindgen/Cargo.toml: keeps the js-webgpu and js-gui features.
- js/scripts/check-wasm-size.mjs: raw budget 5.45 MB; the merged
  artifact is 5.40 MB (5,400,797 bytes), 1.38 MB Brotli.
- ci.yml: one comment for both kinds of unpublished Git dependencies.

Checked: cargo +1.99.1 test --locked -p wasmer-sdk --all-targets;
cargo check --features gui,webgpu --all-targets; js npm run build
(size check and tsc) and npm test (65/65).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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