Files
simple-rust-tests/__wasm/wit-bindgen-sample/README.md

40 lines
1.7 KiB
Markdown

Requires:
* Rust (with target wasm32-unknown-unknown)
Check out wit-bindgen:
```shell
git clone https://github.com/bytecodealliance/wit-bindgen.git
```
How works:
```text
+---------------------------------------------------------------------+
| |
| +---------------------------+ +---------------------------+ |
| | +-----------------------+ | | +-----------------------+ | |
| | | +-----------------+ | | | | +-----------------+ | | |
| | | | User JavaScript | | | | | | User JavaScript | | | |
| | | +-----------------+ | | | | +-----------------+ | | ...... |
| | | | | | | | | |
| | | BOA JavaScript Engine | | | | BOA JavaScript Engine | | |
| | | | | | | | | |
| | +-----------------------+ | | +-----------------------+ | |
| | | | | |
| | WebAssembly (WASM) Engine | | WebAssembly (WASM) Engine | |
| | | | | |
| +---------------------------+ +--+------------------------+ |
| | |
| WASM Container v |
| fetch(url, [options]) |
| console.log(message) |
| |
| |
+---------------------------------------------------------------------+
```