Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ibaryshnikov/beijing-workshop-2019-wasm-bindgen

Workshop materials for RustCon
https://github.com/ibaryshnikov/beijing-workshop-2019-wasm-bindgen

Last synced: 21 days ago
JSON representation

Workshop materials for RustCon

Awesome Lists containing this project

README

        

# The contents of the wasm workshop, part 2

Examples of using `wasm-bindgen`:
- with [es6](es6) modules
- with [node.js](nodejs)
- with [webpack](webpack)

## Setting up

Add compilation target to the toolchain

```
rustup target add wasm32-unknown-unknown
```

Install `wasm-pack`

```
cargo install wasm-pack --version 0.9.1
```

Optionally, install static server

```
cargo install https
```

For `node.js` and `webpack` examples
you will need `node.js` binary installed.

For detailed instructions visit https://nodejs.org/en/download/

### Useful links

- https://rustwasm.github.io/docs/wasm-bindgen/
- https://rustwasm.github.io/docs/wasm-pack/
- https://nodejs.org
- https://webpack.js.org/