-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: support WASI preview 2 #69
Comments
WASI preview 2 depends on the wasm component model which browsers don't natively support. You need something like jco to transpile it to core wasm modules. Jco has experimental support for running WASI preview 2 in the browser already, so I think there is not much of a point to adding wasi preview 2 support to browser_wasi_shim. |
Does JCO support WASI preview 1? because a lot of apps were compiled against WASI 0.1 and have yet to switch. Also the virtual filesystem in this shim library is very flexible and I am not sure if JCO has an equivalent. This is also interesting https://github.com/bytecodealliance/WASI-Virt
|
There is an adapter between wasi preview1 and wasi preview2: https://github.com/bytecodealliance/cargo-component/tree/main/adapters/ab5a448 I don't know if there exists anything to apply this adapter with JCO rather than having to run a native executable to produce a new adapted wasm component.
Never tried it, so I can't for sure, but it seems like there is at least some amount of flexibility: https://github.com/bytecodealliance/jco/tree/main/packages/preview2-shim/lib/browser |
golang/go#65333
https://github.com/WebAssembly/WASI/tree/main/preview2
The text was updated successfully, but these errors were encountered: