~/hooky

hooky/command/src-tauri/src/main.rs -rw-r--r-- 506 B
89bc4b52 — Arthur Melton init command 2 years ago

            
89bc4b52 Arthur Melton
c1f59a62 Arthur Melton
335dec98 Arthur Melton
c1f59a62 Arthur Melton
335dec98 Arthur Melton
dfc58611 Arthur Melton
c1f59a62 Arthur Melton
dfc58611 Arthur Melton
c1f59a62 Arthur Melton
c1f59a62 Arthur Melton
8b2d0277 Arthur Melton
c1f59a62 Arthur Melton
335dec98 Arthur Melton
89bc4b52 Arthur Melton
335dec98 Arthur Melton
8b2d0277 Arthur Melton
335dec98 Arthur Melton
8b2d0277 Arthur Melton
df6fb4e9 Arthur Melton
8b2d0277 Arthur Melton
c1f59a62 Arthur Melton
8b2d0277 Arthur Melton
406fafb5 Arthur Melton
8b2d0277 Arthur Melton
c1f59a62 Arthur Melton
8b2d0277 Arthur Melton
c1f59a62 Arthur Melton
b90df7a0 Arthur Melton
c1f59a62 Arthur Melton
b90df7a0 Arthur Melton
89bc4b52 Arthur Melton
8b2d0277 Arthur Melton
b90df7a0 Arthur Melton
8b2d0277 Arthur Melton
89bc4b52 Arthur Melton
406fafb5 Arthur Melton
89bc4b52 Arthur Melton


























































































1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![cfg_attr(
    all(not(debug_assertions), target_os = "windows"),
    windows_subsystem = "windows"
)]

// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command
#[tauri::command]
fn greet(name: &str) -> String {
    format!("Hello, {}! You've been greeted from Rust!", name)
}

fn main() {
    tauri::Builder::default()
        .invoke_handler(tauri::generate_handler![greet])
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}