tauri-plugin-conduit 2.1.0

tauri-plugin-conduit — Tauri v2 plugin for binary IPC over the conduit:// custom protocol.
Documentation

tauri-plugin-conduit

Crates.io docs.rs CI License

Tauri v2 plugin for conduit -- binary IPC over the conduit:// custom protocol.

Part of the tauri-conduit workspace (v2.1.0).

Usage

use conduit::{command, handler};

#[command]
fn greet(name: String) -> String {
    format!("Hello, {name}!")
}

tauri::Builder::default()
    .plugin(
        tauri_plugin_conduit::init()
            .handler("greet", handler!(greet))
            .channel("telemetry")
            .channel_ordered("events")
            .build()
    )
    .run(tauri::generate_context!())
    .unwrap();

Security

  • Per-launch 32-byte invoke key with constant-time validation
  • No network surface -- everything runs in-process
  • Flat invoke key (no per-command ACL) -- simpler than Tauri's capability system

See the workspace README for full documentation, streaming examples, and benchmark numbers.

License

Licensed under either of MIT or Apache-2.0 at your option.