Scaffold Tauri 2.0 + React + TypeScript app

This commit is contained in:
Jure
2026-03-08 14:28:25 +01:00
parent c610e87fba
commit 43e14f9f04
40 changed files with 7705 additions and 0 deletions
+14
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");
}