aboutsummaryrefslogtreecommitdiffstats
path: root/adenosine-tauri-gui/src
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-10-27 12:38:02 -0700
committerBryan Newbold <bnewbold@robocracy.org>2022-10-27 12:38:02 -0700
commit3b1b394e1651fdc62dcd026a9453017c11e20a2c (patch)
tree2fb5a328a466472e952d0659a7538019866878ee /adenosine-tauri-gui/src
parentb169d130ea80f6954b77a2921c50e8587eadd1ae (diff)
downloadadenosine-3b1b394e1651fdc62dcd026a9453017c11e20a2c.tar.gz
adenosine-3b1b394e1651fdc62dcd026a9453017c11e20a2c.zip
start skeleton of adenosine-tauri-gui crate
Diffstat (limited to 'adenosine-tauri-gui/src')
-rw-r--r--adenosine-tauri-gui/src/main.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/adenosine-tauri-gui/src/main.rs b/adenosine-tauri-gui/src/main.rs
new file mode 100644
index 0000000..d0ef258
--- /dev/null
+++ b/adenosine-tauri-gui/src/main.rs
@@ -0,0 +1,16 @@
+#![cfg_attr(
+ all(not(debug_assertions), target_os = "windows"),
+ windows_subsystem = "windows"
+)]
+
+#[tauri::command]
+fn greet(name: &str) -> String {
+ format!("Hello, {}!", name)
+}
+
+fn main() {
+ tauri::Builder::default()
+ .invoke_handler(tauri::generate_handler![greet])
+ .run(tauri::generate_context!())
+ .expect("error while running tauri application");
+}