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);