mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 10:33:01 +00:00
git-subtree-dir: packages/frontend git-subtree-mainline:d7bdd20dc4git-subtree-split:ecaa662131
14 lines
387 B
Rust
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");
|
|
}
|