Initial setup Vite Tauri

This commit is contained in:
Gregory Schier
2023-02-15 16:58:56 -08:00
commit f3fc1fc0c4
38 changed files with 4595 additions and 0 deletions

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

@@ -0,0 +1,17 @@
#![cfg_attr(
all(not(debug_assertions), target_os = "windows"),
windows_subsystem = "windows"
)]
// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command
#[tauri::command]
fn greet(name: &str) -> String {
format!("Hello, {}! You've been greeted from Rust!", name)
}
fn main() {
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![greet])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}