tauri app with react+vite setup

- tailwind is needed
This commit is contained in:
Oliver Bryan
2025-12-08 02:30:07 +00:00
commit f39a0dc6f8
22 changed files with 5899 additions and 0 deletions

13
src-tauri/src/lib.rs Normal file
View File

@@ -0,0 +1,13 @@
#[tauri::command]
fn greet(name: &str) -> String {
format!("rust: hello, {}.", 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() {
issue_lib::run()
}