Creates the Tauri project and pins our node version via nvm.

This commit is contained in:
2026-08-23 04:45:43 -07:00
parent fd538b0406
commit 737b92469f
42 changed files with 5450 additions and 4 deletions

14
gui/src-tauri/src/lib.rs Normal file
View File

@@ -0,0 +1,14 @@
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
#[tauri::command]
fn greet(name: &str) -> String {
format!("Hello, {}! You've been greeted from Rust!", name)
}
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_opener::init())
.invoke_handler(tauri::generate_handler![greet])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}