Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 1.01 KB

README.md

File metadata and controls

30 lines (23 loc) · 1.01 KB

wasm-study

This is a dumping ground for simple demos related to WebAssembly as I explore the various tools currently available to run wasm.

Setup

  1. Clone this repo.

  2. Install emsdk locally within this repo folder (this will take a while):

./setup-em.sh
  1. Add necessary environment variables and modify PATH in the current shell:
source ./emsdk/emsdk_env.sh
  1. If you want to use the rust demo, install rust and the emscripten target:
./setup-rust.sh

Demos

Folder Description
hello An example of compiling a C function and running it in the browser and in node
simple-wat An example of writing a module in text format and assembling into binary wasm
webassembly-add Demo of webassembly npm module
rust-helloworld An example of compiling a Rust function and running it in the browser