1 min read
Trunk
Trunk is a WASM web application bundler for Rust. Learn more about Trunk at https://trunk-rs.github.io/trunk/. This guide is accurate as of Trunk 0.17.5.
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", "beforeBuildCommand": "trunk build", "devUrl": "http://localhost:8080", "frontendDist": "../dist" }, "app": { "withGlobalTauri": true }}tauri.conf.json
Update Trunk configuration
[watch]ignore = ["./src-tauri"] [serve]ws_protocol = "ws"Trunk.toml
Support on Open CollectiveSponsor on GitHub
© 2026 Tauri Contributors. CC-BY / MIT
Last updated Oct 08, 2026