Skip to content

Update wasip3 WITs to 0.3.0-rc-2026-03-15#774

Merged
alexcrichton merged 5 commits intoWebAssembly:mainfrom
alexcrichton:update-wasip3
Mar 18, 2026
Merged

Update wasip3 WITs to 0.3.0-rc-2026-03-15#774
alexcrichton merged 5 commits intoWebAssembly:mainfrom
alexcrichton:update-wasip3

Conversation

@alexcrichton
Copy link
Collaborator

This requires a number of changes throughout the code and additionally requires an updated version of Wasmtime. For now this PR uses the dev release but that'll get published as Wasmtime 43.0.0 in a few days.

* Handle optional string payloads throughout error codes by deallocating
  the string when it's mapped to a wasi-libc error. This involved
  changing a lot of functions that took a bare error code to instead
  take a pointer-to-an-error-code to ensure the original storage is
  updated to not have a string and reflects the original source of
  truth.

* Functions to write a stream of bytes to an object, e.g. writing bytes
  to a file, have been updated for a new idiom where `async func`-style
  functions are replaced with sync-function-returns-`future` in a few
  places.
Needed for this new wasip3 snapshot
@alexcrichton alexcrichton requested a review from dicej March 18, 2026 05:05
@alexcrichton alexcrichton merged commit f817556 into WebAssembly:main Mar 18, 2026
32 checks passed
@alexcrichton alexcrichton deleted the update-wasip3 branch March 18, 2026 13:43
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.

2 participants