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-rustc

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

Last synced: 6 days ago
JSON representation

Workshop materials for RustCon

Awesome Lists containing this project

README

        

# The contents of the wasm workshop, part 1

Compiling to wasm using pure rustc

## Setting up

Add compilation target to the toolchain

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

## Building

```
rustc lib.rs --target wasm32-unknown-unknown --crate-type cdylib
```

## Running

Serve statics

```
http
````

Then navigate to localhost