## Install dependencies

Install wasm-pack
`cargo install wasm-pack`

Install dependencies
`yarn`

## Build web wasm

MacOS
```
brew install llvm
LLVM_PATH=$(brew --prefix llvm)
AR="${LLVM_PATH}/bin/llvm-ar" CC="${LLVM_PATH}/bin/clang" yarn wasm
```

```
yarn wasm
```

## Run web
```
yarn build
yarn dev
```

## Usage notice
If you get error: `RuntimeError: Atomics.wait cannot be called in this context`
please see [`Caveats`](https://github.com/GoogleChromeLabs/wasm-bindgen-rayon#caveats)

### 🔬 Test in Headless Browsers with `wasm-pack test`

```
wasm-pack test --headless --firefox
```

### 🎁 Publish to NPM with `wasm-pack publish`

```
wasm-pack publish
```

## 🔋 Batteries Included

* [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) for communicating
  between WebAssembly and JavaScript.
* [`console_error_panic_hook`](https://github.com/rustwasm/console_error_panic_hook)
  for logging panic messages to the developer console.
* [`wee_alloc`](https://github.com/rustwasm/wee_alloc), an allocator optimized
  for small code size.
