init commit

This commit is contained in:
Julian Freeman
2024-07-05 20:57:47 -04:00
parent f9731bbd3e
commit 2a38a3bf18
46 changed files with 6407 additions and 0 deletions

19
src-tauri/src/main.rs Normal file
View File

@@ -0,0 +1,19 @@
// 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");
}