lox/crates/lox-wasm/README.md

30 lines
578 B
Markdown
Raw Normal View History

2022-11-09 13:37:10 -05:00
# lox-wasm
2022-11-09 13:39:24 -05:00
wasm bindings for the lox crate: https://git-crysp.uwaterloo.ca/iang/lox
# Dependencies
```
cargo install wasm-pack
```
# Build
```
wasm-pack build --target web
```
# Testing
### Testing Locally
The provided `index.html` file can be used for testing the lox bindings. First, follow the instructions to [run a lox server](https://gitlab.torproject.org/cohosh/lox-server).
Then, spin up a simple local webserver in the current directory:
```
python3 -m http.server 8000
```
Next, open the dev console in your browser and navigate to `http://localhost:8000`.