mirror of
https://github.com/Vomitblood/stort.git
synced 2025-12-17 08:35:09 +08:00
15 lines
456 B
Rust
15 lines
456 B
Rust
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
|
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
|
|
#[tauri::command]
|
|
fn hello(content: &str) -> String {
|
|
format!("Hello {}, what is your name?!", content)
|
|
}
|
|
|
|
fn main() {
|
|
tauri::Builder::default()
|
|
.invoke_handler(tauri::generate_handler![hello])
|
|
.run(tauri::generate_context!())
|
|
.expect("error while running tauri application");
|
|
}
|