Debian Codegraph @

.cargo/vendor/wasm-bindgen/guide/src/examples/wasm-in-wasm.md

raw
1 # js-sys: WebAssembly in WebAssembly
2
3 [View full source code][code] or [view the compiled example online][online]
4
5 [online]: https://rustwasm.github.io/wasm-bindgen/exbuild/wasm-in-wasm/
6 [code]: https://github.com/rustwasm/wasm-bindgen/tree/master/examples/wasm-in-wasm
7
8 Using the `js-sys` crate we can get pretty meta and instantiate `WebAssembly`
9 modules from inside `WebAssembly` modules!
10
11 ## `src/lib.rs`
12
13 ```rust
14 {{#include ../../../examples/wasm-in-wasm/src/lib.rs}}
15 ```