summaryrefslogtreecommitdiffstats
path: root/adenosine-tauri-gui/src/main.rs
blob: d0ef258c6685b06ca6bad20ce43f20f979869f74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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");
}