You cann also use the mill wrapper provided in this repository with the recommended mill version. It will download mill for you if you do not have it already, and run it. To use it, replace following
mill commands by
If you want to run the specification tests, just type:
It you want to test swam in a REPL session, just type tostart an ammonite shell with runtime project in classpath.:
mill -i runtime.repl
If you want a REPL session with both runtime and text, the easiest way is to start a session for the runtime.test project:
$ mill -i runtime.test.repl
This project defines several modules:
coremodule is a library that makes it possible to manipulate binary representation of WebAssembly modules. In particular it contains:
- a streaming parser for the binary format;
- a compiler from text to binary format.
runtimemodule is a non-web embedding to instantiate and run WebAssembly modules.
textmodule is a library that makes it possible to manipulate text representation of WebAssembly modules. It is not included in the
coremodule as text representation is more of a debug feature, and the runtime does not want to bring that dependency with it.
If you want more details, please refer to the website.