Skip to main content

init

Function init 

Source
pub fn init<R: Runtime>() -> TauriPlugin<R>
Expand description

Initialize the Victauri plugin with default settings (port 7373 or VICTAURI_PORT env var).

In debug builds: starts the embedded MCP server, injects the JS bridge, and registers all Tauri command handlers.

In release builds: returns a no-op plugin. The MCP server, JS bridge, and all introspection tools are completely stripped — zero overhead, zero attack surface.

For custom configuration, use VictauriBuilder::new().port(8080).build().

§Panics

Panics if the default builder configuration is invalid (this is a bug).