tauri-plugin-dev-invoke

Crates.iotauri-plugin-dev-invoke
lib.rstauri-plugin-dev-invoke
version0.2.0
created_at2025-12-21 12:09:21.018549+00
updated_at2025-12-27 11:23:56.762326+00
descriptionEnables external browsers to invoke Tauri commands via HTTP for dev/testing
homepagehttps://github.com/almontasser/tauri-plugin-dev-invoke
repositoryhttps://github.com/almontasser/tauri-plugin-dev-invoke
max_upload_size
id1997875
size109,228
Mahmoud Almontasser (almontasser)

documentation

README

Tauri Dev Invoke Plugin

Invoke Tauri commands from external browsers - identical behavior to WebView.

Routes HTTP requests through Tauri's real invoke system, so all extractors work.

Installation

[dependencies]
tauri-plugin-dev-invoke = "0.2"

Usage

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

pub fn run() {
    tauri::Builder::default()
        .plugin(tauri_plugin_dev_invoke::init())
        .invoke_handler(tauri::generate_handler![greet])
        .run(tauri::generate_context!())
        .expect("error");
}

Security

  • HTTP server only runs in debug mode
  • Binds to 127.0.0.1:3030 (localhost only)

License

MIT or Apache-2.0

Commit count: 0

cargo fmt