1 min read
Leptos
Leptos is a Rust based web framework. You can read more about Leptos on their official website. This guide is accurate as of Leptos version 0.6.
Checklist
- Use SSG, Tauri doesn’t officially support server based solutions.
- Use
serve.ws_protocol = "ws"so that the hot-reload websocket can connect properly for mobile development. - Enable
withGlobalTaurito ensure that Tauri APIs are available in thewindow.__TAURI__variable and can be imported usingwasm-bindgen.
Example Configuration
Update Tauri configuration
{ "build": { "beforeDevCommand": "trunk serve", "devUrl": "http://localhost:1420", "beforeBuildCommand": "trunk build", "frontendDist": "../dist" }, "app": { "withGlobalTauri": true }}src-tauri/tauri.conf.json
Update Trunk configuration
[build]target = "./index.html" [watch]ignore = ["./src-tauri"] [serve]port = 1420open = falsews_protocol = "ws"Trunk.toml
Support on Open CollectiveSponsor on GitHub
© 2026 Tauri Contributors. CC-BY / MIT
Last updated Oct 08, 2026