switch to wasm-bindgen

This commit is contained in:
2025-08-08 07:06:47 +02:00
parent 6ccf7dce24
commit 7f102b8e0b
5 changed files with 768 additions and 261 deletions

18
README Normal file
View File

@@ -0,0 +1,18 @@
To build and use this:
1. Install wasm-pack (if you haven't already):
```bash
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
```
2. Build the WASM module:
```bash
wasm-pack build --target web --out-dir pkg
```
3. Serve the HTML file using a local HTTP server (required for ES modules):
```bash
python3 -m http.server 8000
# or
npx serve .
```