Files
policies-gen/src-tauri/src/main.rs
Julian Freeman 2a38a3bf18 init commit
2024-07-05 20:57:47 -04:00

20 lines
518 B
Rust

// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
#[tauri::command]
fn greet(name: &str) -> String {
format!("Hello, {}!", name)
}
#[tauri::command]
fn bye(name: &str) -> String {
format!("Bye, {}!", name)
}
fn main() {
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![greet, bye])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}