diff options
author | Ashelyn Rose <git@ashen.earth> | 2025-02-13 23:19:45 -0700 |
---|---|---|
committer | Ashelyn Rose <git@ashen.earth> | 2025-02-13 23:19:45 -0700 |
commit | b5d6d25912993b91bc1b3ec52c352431398c36d9 (patch) | |
tree | 4aac11f171e826e95ace3c4d63624a2bbd4c3e91 /app | |
parent | 8a0c92f80a797f40bc06f524d37247273351be8e (diff) |
React with ui -> app IPC
Diffstat (limited to 'app')
-rw-r--r-- | app/src/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/src/lib.rs b/app/src/lib.rs index 9a3e3a1..d9ad08c 100644 --- a/app/src/lib.rs +++ b/app/src/lib.rs @@ -2,6 +2,13 @@ pub fn run() { tauri::Builder::default() .plugin(tauri_plugin_opener::init()) + .invoke_handler(tauri::generate_handler![greet]) .run(tauri::generate_context!()) .expect("Error starting") } + +#[tauri::command] +fn greet(name: &str) -> String { + format!("Hello, {}!", name) +} + |