Skip to main content

init

Function init 

Source
pub fn init(app: &mut App<Wry>) -> Result<(), GpuiError>
Expand description

Initializes the shared GPUI runtime and hooks it into Tauri’s event loop.

Call once from tauri::Builder::setup. The plugin needs raw TAO events, which Tauri only exposes through tauri::App::wry_plugin, so it is registered here rather than through Builder::plugin.