#invoke #tauri

tauri-invoke

A simple way to call tauri's invokes from rust wasm

3 unstable releases

0.2.0 Mar 7, 2023
0.1.1 Sep 1, 2022
0.1.0 Sep 1, 2022

#809 in WebAssembly

Download history 8/week @ 2024-03-26 38/week @ 2024-04-02 9/week @ 2024-04-09

70 downloads per month

MIT/Apache

7KB
54 lines

Tauri invoke

Crates.io Documentation

Misc

If the name 'tauri-invoke' is needed for the main tauri project. Please reach out to me and i will republish this crate under another name.


lib.rs:

A simple way to call invoke in tauri from rust.

// define an invoke
tauri_invoke::invoke!(async fn example_invoke(foo: f32, bar: bool) -> String);

// call the invoke
let future = example_invoke(1.0, false);

Dependencies

~1.4–3.5MB
~67K SLoC