From 3b1b394e1651fdc62dcd026a9453017c11e20a2c Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 27 Oct 2022 12:38:02 -0700 Subject: start skeleton of adenosine-tauri-gui crate --- adenosine-tauri-gui/src/main.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 adenosine-tauri-gui/src/main.rs (limited to 'adenosine-tauri-gui/src/main.rs') 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"); +} -- cgit v1.2.3