diff options
Diffstat (limited to 'adenosine-tauri-gui/src/main.rs')
-rw-r--r-- | adenosine-tauri-gui/src/main.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/adenosine-tauri-gui/src/main.rs b/adenosine-tauri-gui/src/main.rs new file mode 100644 index 0000000..d0ef258 --- /dev/null +++ b/adenosine-tauri-gui/src/main.rs @@ -0,0 +1,16 @@ +#![cfg_attr( + all(not(debug_assertions), target_os = "windows"), + windows_subsystem = "windows" +)] + +#[tauri::command] +fn greet(name: &str) -> String { + format!("Hello, {}!", name) +} + +fn main() { + tauri::Builder::default() + .invoke_handler(tauri::generate_handler![greet]) + .run(tauri::generate_context!()) + .expect("error while running tauri application"); +} |