Tauri (Vanilla) + Elm based counter example, where the counter is incremented via Tauri's Rust backend, decremented via WebAssembly, and reset via Elm.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
eaon e8a22bb163
Switch from make to just, update Tauri and add Cargo.lock files
2 weeks ago
.vscode Initial commit 2 months ago
public Use JS Number in WASM rather than BigInt in JS 2 months ago
src-elm More consistent folder naming and building infrastructure 2 months ago
src-tauri Switch from make to just, update Tauri and add Cargo.lock files 2 weeks ago
src-wasm Switch from make to just, update Tauri and add Cargo.lock files 2 weeks ago
.gitignore Move decrement function to a WebAssembly module 2 months ago
Justfile Switch from make to just, update Tauri and add Cargo.lock files 2 weeks ago
LICENSE Add license 2 months ago
README.md Switch from make to just, update Tauri and add Cargo.lock files 2 weeks ago
elm.json More consistent folder naming and building infrastructure 2 months ago

README.md

Tauri (Vanilla) + Elm Counter Example

This is a quick and dirty proof-of-concept for passing messages from Tauri's Rust backend as well as a WebAssembly module to Elm's frontend (and vice versa) without relying on the typical JavaScript ecosystem.

In this project, the counter is incremented via Tauri's Rust backend, decremented via WebAssembly, and reset via Elm.

Dependencies

  • Rust (… yes)
  • Elm 0.19.1 binary in your PATH
  • wasm-pack (i.e. cargo install wasm-pack)
  • create-tauri-app (i.e. cargo install create-tauri-app)
  • just (i.e. cargo install just)

Building

cargo-tauri dev