# Tauri

URL: https://eoxlabs.dev/stack/tauri
Last updated: 2026-11-26
Publisher: EOXLABS (https://eoxlabs.dev)

Section: [Stack](https://eoxlabs.dev/stack)

Tauri is a framework for building desktop and mobile apps from a web interface and a Rust core, rendered in the operating system's own webview instead of a bundled browser. EOXLABS uses Tauri 2 when a product needs an installable app that reuses its web interface and keeps every native capability behind explicit, reviewable permissions.

Tauri 2.0 became stable on [October 2, 2024](https://tauri.app/blog/tauri-20/). It added iOS and Android, and replaced the old allowlist with permissions, scopes and capabilities. Radically Open Security audited the v2 architecture before release, with funding from NLnet through NGI. In the [EOXLABS stack](https://eoxlabs.dev/stack), Tauri is the answer for desktop software that has to share an interface with the web, one part of the [native apps](https://eoxlabs.dev/capabilities/native-apps) capability.

## How is an EOXLABS Tauri app put together?

**The interface is a SvelteKit app built as a single-page app.** Tauri's [SvelteKit guide](https://tauri.app/start/frontend/sveltekit/) uses `adapter-static`, turns off server rendering with `export const ssr = false`, and points `frontendDist` at `../build`, because "Tauri doesn't support server-based solutions". The guide's snippets still edit `svelte.config.js`; in SvelteKit 3 that configuration lives in `vite.config.js`, as the [SvelteKit](https://eoxlabs.dev/stack/sveltekit) page explains.

**The core is Rust.** Functions marked `#[tauri::command]` are registered with `generate_handler!` and called from the interface with `invoke` ([calling Rust](https://tauri.app/develop/calling-rust/)). Arguments arrive as JSON and are deserialized with serde; return values and errors must be serializable. A successful deserialization only proves the JSON had the right shape, so EOXLABS still checks paths, sizes and ranges inside each command. The [Rust](https://eoxlabs.dev/stack/rust) page covers when heavier work belongs in that core.

**The renderer depends on the platform.** Per Tauri's [webview reference](https://tauri.app/reference/webview-versions/), Windows uses WebView2, which is Chromium-based and updates itself. macOS and iOS use WKWebView, which updates with the operating system, so unsupported macOS versions get no WebKit updates. Linux uses WebKitGTK, and Android uses the system WebView. EOXLABS tests every interface on both Chromium and WebKit, and sets the minimum macOS version by the WebKit features the interface needs.

## What does the capability system actually restrict?

A [capability](https://tauri.app/security/capabilities/) grants [permissions](https://tauri.app/security/permissions/) to named windows or webviews. A permission allows or denies specific commands and can carry a scope, such as allowing `$HOME/*` while denying `$HOME/secret`. Capability files live in `src-tauri/capabilities` and can target specific platforms:

```json
{
  "$schema": "../gen/schemas/desktop-schema.json",
  "identifier": "main-window",
  "windows": ["main"],
  "platforms": ["linux", "macOS", "windows"],
  "permissions": ["fs:default", "global-shortcut:allow-register"]
}
```

EOXLABS checks three details in every review:

1. **The app's own commands are open by default.** Tauri's documentation states that every command registered with `invoke_handler` is available to all windows and webviews unless `AppManifest::commands` in `build.rs` changes that. EOXLABS declares app commands there, so each window gets only what its capability grants.
2. **Remote content stays out.** By default only bundled code can call Tauri's API. A `remote` section opens commands to listed URLs, and on Linux and Android Tauri can't tell an embedded iframe from the window itself, so EOXLABS leaves remote access off.
3. **The isolation pattern goes in where it fits.** In the [isolation pattern](https://tauri.app/concept/inter-process-communication/isolation/), a small script in a sandboxed iframe sees every IPC message, encrypted with AES-GCM keys regenerated on each run, and can reject calls before they reach the core. That guards against a compromised frontend dependency. On Windows, ES modules don't load inside that iframe, so the script is inlined at build time.

Desktop tools for [cybersecurity](https://eoxlabs.dev/industries/cybersecurity) teams suit this model, because the capability files and the app manifest together state what each window can touch.

## How do updates stay trustworthy?

Tauri's [updater plugin](https://tauri.app/plugin/updater/) requires a signature on every update: "This cannot be disabled." Keys come from `tauri signer generate`, the public key is embedded in the app's configuration, the private key is supplied to the build as an environment variable, and TLS is enforced in production. The documentation is blunt about the risk: lose the private key and installed apps can never receive another update. EOXLABS keeps that key in the CI secret store with an offline backup, and serves the static update manifest and signed artifacts over HTTPS from object storage.

Updater signing is separate from operating-system code signing. Distributing outside the Mac App Store needs a Developer ID Application certificate, and Tauri's [macOS signing guide](https://tauri.app/distribute/sign/macos/) notes that notarization is required with that certificate and isn't available on a free Apple account. Two keys, two failure modes, both tracked in the release checklist.

## How much smaller is a Tauri app?

Tauri's [getting-started page](https://tauri.app/start/) says "a minimal Tauri app can be less than 600KB in size". Electron [embeds Chromium and Node.js into its binary](https://www.electronjs.org/docs/latest/), so every Electron app carries its own browser engine. Electron's documentation publishes no comparable size figure, so this page doesn't quote one. The trade runs both ways: the bundled engine is why Electron behaves consistently across operating systems, and why Tauri, which inherits each system's webview, doesn't.

## Tauri, Electron or native Swift?

| | Tauri 2 | Electron | Native Swift |
|---|---|---|---|
| Renderer | The operating system's webview | Chromium, bundled in each app | SwiftUI and native controls |
| Native code | Rust core; Swift and Kotlin in mobile plugins | Node.js | Swift throughout |
| Platforms | Windows, macOS, Linux, iOS, Android | Windows, macOS, Linux | Apple platforms only |
| Security defaults | Commands reach the interface through capabilities and permissions | Context isolation since 12.0.0 and renderer sandboxing since 20.0.0 ([security checklist](https://www.electronjs.org/docs/latest/tutorial/security)) | Platform permission prompts; App Review on the App Store |
| Best fit at EOXLABS | Cross-platform tools that share a web interface | Apps that need identical rendering everywhere | Apple-first products with deep platform integration |

## When not to use Tauri

- **The interface must render identically on every operating system,** or depends on Chromium-only behavior. Electron's bundled engine is worth its size there.
- **The product is Apple-first** and needs widgets, extensions or the full SDK. Build it in [Swift](https://eoxlabs.dev/stack/swift).
- **Nobody will own the Rust core.** Every native feature passes through it.
- **Linux is a primary target and the interface relies on recent web features.** WebKitGTK versions vary by distribution.
- **The app is the website in a window.** An installable web app is cheaper to run and update.
- **The mobile build depends on a plugin without iOS or Android support.** Tauri's 2.0 announcement said not every official plugin supported mobile; check each one before committing.

## Related

- [Native Apps](https://eoxlabs.dev/capabilities/native-apps): Native apps from EOXLABS: Swift where the Apple platform matters most, Tauri 2 for one codebase across desktop and mobile, and one edge backend behind every client.
- [Rust](https://eoxlabs.dev/stack/rust): Where Rust earns its place in an EOXLABS system, what WebAssembly on Workers allows and limits, the costs in build time and hiring, and how Rust compares with Go and TypeScript.
- [SvelteKit](https://eoxlabs.dev/stack/sveltekit): Why EOXLABS builds edge-rendered web products in SvelteKit with Svelte 5 runes, how it splits prerendered and dynamic routes on Workers, and when Next.js or Astro fits better.
- [Security and Resilience](https://eoxlabs.dev/capabilities/security-resilience): Zero trust access, envelope encryption with rotatable keys, backups locked against deletion, and recovery rehearsed in advance: how EOXLABS designs systems to withstand a breach.

## More stack

- [Cloudflare Workers](https://eoxlabs.dev/stack/cloudflare-workers)
- [Durable Objects](https://eoxlabs.dev/stack/durable-objects)
- [D1](https://eoxlabs.dev/stack/d1)
