Skip to main content

init

Function init 

Source
pub fn init<R: Runtime>(
    handle: HotUpdateHandle,
) -> TauriPlugin<R, Option<Config>>
Expand description

Step 2: the plugin. Its setup hook (which tauri runs before any webview is created) validates the Config from tauri.conf.json, resolves {app_data_dir}/hot-update, loads state.json, performs rollback/arming, persists, and activates serving.

A missing or invalid plugins.hot-update config aborts startup (config is a build-time artifact — set { "enabled": false } to dark-ship). Runtime failures (unresolvable data dir, unwritable state) degrade to serving embedded assets; they never abort the app.