feat: Tauri-2-Gerüst mit Svelte und TypeScript anlegen

create-tauri-app, Template svelte-ts. npm run build und cargo check laufen
durch. App nicht gestartet, Datenordner und TOML-Config folgen (#1018).

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-06 18:37:40 +01:00
parent 24e938e190
commit 57fbc57a54
40 changed files with 6834 additions and 2 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");
}

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

@ -0,0 +1,6 @@
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
coding_bench_lib::run()
}