mirror of
https://github.com/hex248/sprint.git
synced 2026-02-09 02:33:02 +00:00
Add 'packages/frontend/' from commit 'ecaa662131160697866f77488d13159c986d5e8e'
git-subtree-dir: packages/frontend git-subtree-mainline:d7bdd20dc4git-subtree-split:ecaa662131
This commit is contained in:
13
packages/frontend/src-tauri/src/lib.rs
Normal file
13
packages/frontend/src-tauri/src/lib.rs
Normal 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");
|
||||
}
|
||||
Reference in New Issue
Block a user