Skip to content

wasirun: support WasmEdge v1#23

Merged
chriso merged 6 commits intomainfrom
wasmedge-support
May 11, 2023
Merged

wasirun: support WasmEdge v1#23
chriso merged 6 commits intomainfrom
wasmedge-support

Conversation

@chriso
Copy link
Copy Markdown
Contributor

@chriso chriso commented May 11, 2023

Following up from #20, this PR adds basic WasmEdge v1 support. We can reliably detect whether the WASM module was compiled with the V1 or V2 API, and setup the necessary host module. The user shouldn't have to do anything, since --sockets auto is the default.

V1 is mostly the same; there are a few minor differences. I've left a few stubs/TODOs for later.

I'm now able to run the examples from https://github.com/second-state/wasm-learning and https://github.com/second-state/wasmedge_wasi_socket, and the WasmEdge Python version from https://github.com/vmware-labs/webassembly-language-runtimes/releases:

$ wasirun python-3.11.3-wasmedge.wasm                   
Python 3.11.3 (tags/v3.11.3:f3909b8, Apr 28 2023, 09:52:05) [Clang 15.0.7 ] on wasi
Type "help", "copyright", "credits" or "license" for more information.
>>> 

@chriso chriso merged commit 10e7831 into main May 11, 2023
@chriso chriso deleted the wasmedge-support branch May 11, 2023 21:09
@chriso chriso mentioned this pull request May 23, 2023
4 tasks
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