A .NET binding for wasm3 WebAssembly interpreter.
Wasm3DotNet consists of two layers:
- Direct, (almost) one-to-one mapping of
wasm3C API using P/Invoke (Wasm3DotNet.NativeFunctions) - C#-style, class-based wrapper (Wasm3DotNet.Wrapper namespace)
- Open
Wasm3DotNet.slnin Visual Studio. - Build
wasm3_dll(native code library) - Build
Wasm3DotNet(managed code library) - To test the demo application, build and run
Wasm3DotNetDemo.
After build, two important files will be generated.
wasm3_dll/Debug/wasm3.dllis the native code library that contains wasm3 interpreter.Wasm3DotNet/bin/Debug/netstandard2.0/Wasm3DotNet.dllis the managed (.NET) library.
(These paths are relative to the root of this repository. Debug is replaced to Release for release build)
To use Wasm3DotNet for your project, add reference to Wasm3DotNet.dll, and copy wasm3.dll to executable directory (or native plugin folder for Unity).