Skip to main content

Crate tauri_plugin_picoframe_worker

Crate tauri_plugin_picoframe_worker 

Source
Expand description

Example long-lived sidecar plugin (Rust half). Demonstrates the picoframe sidecar pattern: a persistent Bun HTTP server spawned once at startup, called over loopback with a shared-secret token, streaming progress to the UI as Tauri events.

The heavy lifting (spawn, handshake, health, SSE bridge, restart, kill-on-exit) lives in picoframe_core::sidecar; this crate just configures it and exposes two commands.

Functionsยง

init
Build the plugin. Registered as "picoframe-worker", so the frontend invokes plugin:picoframe-worker|worker_crunch. The sidecar is spawned in setup and killed on app exit; a spawn failure is logged but does not abort startup (the UI surfaces the unhealthy state).