lox/crates/lox-wasm
onyinyang 73c3ef8728
Change lox package to lox-library for consistency
2023-06-23 08:22:15 -04:00
..
src Change lox package to lox-library for consistency 2023-06-23 08:22:15 -04:00
.gitignore Add .gitignore 2022-11-10 11:05:46 -05:00
Cargo.toml Change lox package to lox-library for consistency 2023-06-23 08:22:15 -04: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 Make all requests POST requests to match server and browser handling 2023-03-24 13:02:42 -04: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.