Tauri 2 extends the Rust-powered desktop framework to iOS and Android, with a refined permissions model and plugin ecosystem. Test your knowledge of its architecture and features.
0 / 5 completed
1 / 5
What major platform support did Tauri 2 add compared to Tauri 1?
Tauri 2 added mobile support as a first-class target, allowing you to build iOS and Android apps from the same Rust + web frontend codebase. Mobile apps use the device's native WebView (WKWebView on iOS, WebView on Android) and can call Tauri plugins for device APIs like camera, notifications, and file system.
2 / 5
In Tauri 2, what is a capability in the permissions model?
Capabilities in Tauri 2 replace the older allowlist system. A capability defines which permissions (e.g., fs:read, dialog:open) are granted to a specific window or webview. This fine-grained model ensures that different windows in a multi-window app can have different permission scopes, improving security.
3 / 5
How does Tauri 2's plugin system differ from Tauri 1's approach?
Tauri 2 plugins are structured packages that include Rust code for native functionality, auto-generated JavaScript/TypeScript bindings, and a permissions/ directory declaring the plugin's access scope. Official plugins (fs, http, shell, dialog) follow this same structure, making community plugins first-class citizens in the ecosystem.
4 / 5
What is the IPC mechanism Tauri uses for frontend-to-backend communication?
Tauri's IPC works via the invoke() function on the frontend, which sends a message to a Rust #[tauri::command] handler. The WebView intercepts this via a custom protocol, serialises the arguments, and delivers them to Rust, which runs the handler and returns a serialised response asynchronously.
5 / 5
Why do Tauri apps produce much smaller installers than Electron apps for equivalent functionality?
Electron bundles a full Chromium browser (typically 100-150 MB) plus the Node.js runtime into every app. Tauri instead uses the operating system's already-installed WebView (WKWebView on macOS, WebView2 on Windows, WebKitGTK on Linux), and Rust compiles to lean native binaries — resulting in installers often under 10 MB.