Wry renders web content in native windows for Rust projects, notably Tauri. It uses platform web engines including WebKitGTK, WKWebView, WebView2, and Android WebView.
Overview
Wry is a cross-platform WebView rendering library used by Tauri and other Rust GUI stacks. Creating a webview needs a running event loop and a window type implementing HasWindowHandle, or a GTK container on Linux when supporting X11 and Wayland.
Examples pair Wry with winit or tao windowing. Child webviews can embed inside parent windows on macOS, Windows, and Linux X11, with GTK-specific helpers for dual X11 and Wayland support.
Linux builds use WebKitGTK with GTK dependencies documented for Arch, Debian, Ubuntu, Fedora, NixOS, and Guix. macOS uses native WebKit; Windows relies on WebView2 from Microsoft Edge Chromium, supporting Windows 7 through 11. Android requires environment variables such as WRYANDROIDPACKAGE when generating Kotlin glue.
Cross-compiling macOS with osxcross may need RUSTFLAGS linking WebKit.framework when runtime panics mention missing WKWebViewConfiguration.
Key features
- Native WebView for Rust GUIs
- tao and winit integrations
- Child webview embedding
- WebKitGTK on Linux
- WebView2 on Windows
- WKWebView on macOS
- Android WebView packaging hooks
- GTK helpers for Wayland
Use cases
- Embedding HTML UIs in Rust apps
- Powering Tauri webviews
- Building cross-platform desktop shells
- Hosting child webviews in windows