Back to Wasm Bindgen

js-sys: WebAssembly in WebAssembly

guide/src/examples/wasm-in-wasm.md

0.2.120484 B
Original Source

js-sys: WebAssembly in WebAssembly

View full source code or view the compiled example online

Using the js-sys crate we can get pretty meta and instantiate WebAssembly modules from inside WebAssembly modules!

src/lib.rs

rust
{{#include ../../../examples/wasm-in-wasm/src/lib.rs}}