Svelte-Rust-Wasm Template

Call Rust functions in Svelte web app via WebAssembly. The function would be available as node module with name provided by package.name in Cargo.toml.

Requirements

Getting Started

  1. clone this repo
  2. npm i: This'll also triggers prepare script to build rust/wasm as local dependency first to pkg folder.
  3. npm run preview to serve preview.
  4. All other details can be read from package.json.

Note: npm run dev or check:watch wouldn't work, for now.

Top categories

svelte logo

Need a Svelte website built?

Hire a professional Svelte developer today.
Loading Svelte Themes