Skip to content

Add optional WASI preview2 shim and stub helpers#354

Closed
tomohisa wants to merge 3 commits intobytecodealliance:mainfrom
J-Tech-Japan:pr/preview2-shim
Closed

Add optional WASI preview2 shim and stub helpers#354
tomohisa wants to merge 3 commits intobytecodealliance:mainfrom
J-Tech-Japan:pr/preview2-shim

Conversation

@tomohisa
Copy link

@tomohisa tomohisa commented Feb 1, 2026

Summary

  • Add native preview2 shim (Rust) and managed runner / extractor.
  • Add preview2 stub helpers in Linker plus tests.
  • Add documentation for building/using the shim.

Why

Enable running WASI 0.2 components in-process and extracting core modules.

Tests

  • dotnet test tests/Wasmtime.Tests.csproj -c Release

Notes

The shim is optional; users must build native/wasmtime-preview2-shim separately (Rust 1.86+).

Risk

Medium. Adds new optional functionality; does not change existing paths.

@tomohisa tomohisa marked this pull request as draft February 1, 2026 06:43
@tomohisa
Copy link
Author

tomohisa commented Feb 1, 2026

Blocked by #355. CI fails without the DevBuild ABI toggle;
please review/merge #355 first, then I will rebase this PR.

@tomohisa tomohisa closed this Feb 1, 2026
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