uhyo / rust-wasm-jspi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rust wasm JSPI example

This is a simple example of how to use Rust to create a WebAssembly module that supports JavaScript-Promise Integration (JSPI).

Prerequisites

Also, configure your browser to enable JSPI. For Chrome, you need to configure the experimental feature.

Build

  1. npm run wasm to build the Rust code into a WebAssembly module.
  2. npm run dev to start a Vite dev server.
  3. Navigate to http://localhost:5173/ to see JSPI in action.

Explanation

No explanation provided for now. See js/main.ts for details.

License

MIT

About

License:MIT License


Languages

Language:TypeScript 59.1%Language:CSS 21.9%Language:HTML 10.6%Language:Rust 6.1%Language:JavaScript 2.3%