T-010: Tauri-2-Projekt aufgesetzt (Rust-Backend, Svelte5+Vite-TS-Frontend), Start-Test bestanden

This commit is contained in:
2026-11-06 19:21:57 +01:00
parent 32d852c8d2
commit cf7378d0f4
44 changed files with 6975 additions and 1 deletions

14
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");
}