blob: d9ad08cae9575456024a8af02d118d896aec2279 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#[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 starting")
}
#[tauri::command]
fn greet(name: &str) -> String {
format!("Hello, {}!", name)
}
|