lox/crates/lox-wasm
onyinyang 235eb90d6e
Change calls to match server
2023-01-25 15:02:53 -05:00
..
src Change calls to match server 2023-01-25 15:02:53 -05:00
.gitignore Add .gitignore 2022-11-10 11:05:46 -05:00
Cargo.toml Add wasm_bindgen for handling new lox credential 2023-01-25 15:02:39 -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 Change calls to match server 2023-01-25 15:02:53 -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.