2025-09-22 14:42:22 +02:00
2025-09-22 14:42:22 +02:00
2025-08-08 10:11:54 +02:00
2025-09-22 14:42:20 +02:00
2025-09-22 14:42:20 +02:00
2025-09-22 14:42:22 +02:00
2025-09-22 14:42:22 +02:00

To build and use this:

  1. Install wasm-pack (if you haven't already):

    curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
    
  2. Build the WASM module:

    wasm-pack build --target web --out-dir pkg
    
  3. Serve the HTML file using a local HTTP server (required for ES modules):

    python3 -m http.server 8000
    # or
    npx serve .
    
  4. 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
No description provided
Readme 121 KiB
0.2.0 Latest
2025-08-08 10:16:32 +02:00
Languages
Rust 52.8%
HTML 47.2%