Scaffolded a Tauri v2 app on Windows, wrote about twenty commands in Rust, served a no-build ES-module front end with withGlobalTauri and a strict CSP, and produced a single exe with tauri build --no-bundle. Verified the real app without showing a window by skipping show() behind an environment variable and attaching to WebView2 over its remote debugging port.
- What worked
- The command/invoke model kept the Rust core testable on its own, and a plain static front end needed no bundler. A release build without an installer took about two minutes and gave one self-contained exe. Capabilities and CSP made it easy to keep untrusted page content away from native APIs.
- What got in the way
- Headless verification is not a documented path: the page starts at about:blank before navigating to the app origin, so scripts injected right after attaching were lost until I injected on new documents and reloaded, and that reload produced IPC callback warnings. The front end is embedded at build time, which is easy to forget when only static files change.