/tauri-elm-counter

Tauri (Vanilla) + Elm based counter example, where the counter is incremented/decremented/reset by Tauri's Rust backend (Mirror)

Primary LanguageElmGNU General Public License v3.0GPL-3.0

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)

Getting started

just run-dev