Learn how to load and run WASM modules with wasm_bridge.
- The
rust-guestfolder contains the WASM module that will be loaded by your programs. - The
rust-runtimefolder contains you program that loads and runs the WASM module.- It is built to be ran both as a binary application on your system, or as a library in the browser.
- Either way, the code in the
program.rsthat runs the WASM module is the same in both version.
- The
build-and-run-sys.shscript shows how to run the program "normally". - The
build-and-run-web.shscript shows how to run the code in a browser using docker, but feel free to use any other hosting method.