mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-05-23 10:41:22 +00:00
15 lines
359 B
Markdown
15 lines
359 B
Markdown
|
# js-sys: WebAssembly in WebAssembly
|
||
|
|
||
|
[View full source code][code]
|
||
|
|
||
|
[code]: https://github.com/rustwasm/wasm-bindgen/tree/master/examples/wasm-in-wasm
|
||
|
|
||
|
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}}
|
||
|
```
|