To build and use this:
-
Install wasm-pack (if you haven't already):
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh -
Build the WASM module:
wasm-pack build --target web --out-dir pkg -
Serve the HTML file using a local HTTP server (required for ES modules):
python3 -m http.server 8000 # or npx serve . -
Use the API:
try { const result = evaluate_cel("name + ' is ' + string(age)", {name: "Alice", age: 30}); console.log(result); } catch (error) { console.error(error); }
Description
0.2.0
Latest
Languages
Rust
52.8%
HTML
47.2%