Files
sprint/src-tauri/src/lib.rs
Oliver Bryan f39a0dc6f8 tauri app with react+vite setup
- tailwind is needed
2025-12-08 02:30:07 +00:00

14 lines
387 B
Rust

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