Repo with a semi-minimal example of loading a WASM file and executing it as a plugin from a rust program.
Building and usage is documented in the Makefile. Interestingly, WASM loading is extremely slow in dev mode - 60+ seconds on my laptop to JIT the WASM bytecode in dev mode vs 350 milliseconds in release.
Run make test
and make test-release
to see the difference. These will also echo a short explanation.