lox/crates/lox-wasm
onyinyang 8191130eef
Refactor js to remove duplicate code
2023-02-14 14:45:52 -05:00
..
src Add Trust migration protocol 2023-02-13 23:58:07 -05:00
.gitignore Add .gitignore 2022-11-10 11:05:46 -05:00
Cargo.toml Solve time issue, add time for testing 2023-02-10 16:18:54 -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 Refactor js to remove duplicate code 2023-02-14 14:45:52 -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.