lox/crates/lox-wasm
onyinyang 33cdb81fce
Add redeem invite
2023-02-27 14:17:26 -05:00
..
src Add redeem invite 2023-02-27 14:17:26 -05:00
.gitignore Add .gitignore 2022-11-10 11:05:46 -05:00
Cargo.toml Add up to level up 4 2023-02-23 22:16:45 -05:00
LICENSE Add LICENSE 2022-11-09 18:38:42 +00:00
README.md Instructions and a simple test of the bindings 2022-11-15 22:03:30 -05:00
index.html Put lox test script into its own file 2023-01-13 14:16:37 -05:00
index.js Add redeem invite 2023-02-27 14:17:26 -05:00

README.md

lox-wasm

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

The provided index.html file can be used for testing the lox bindings. First, follow the instructions to run a 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.