Sha256: d0aa96417dd8a6725a3d39dcdc4f3f9a187d6c10bda3273e0e997392dc375caa

Contents?: true

Size: 506 Bytes

Versions: 16

Compression:

Stored size: 506 Bytes

Contents

#![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");
}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
atome-0.5.4.1.9 vendor/assets/src-tauri/src/main.rs
atome-0.5.4.1.7 vendor/assets/src-tauri/src/main.rs
atome-0.5.4.1.3 vendor/assets/src-tauri/src/main.rs
atome-0.5.4.1.2 vendor/assets/src-tauri/src/main.rs
atome-0.5.4.1.1 vendor/assets/src-tauri/src/main.rs
atome-0.5.4.1.0 vendor/assets/src-tauri/src/main.rs
atome-0.5.4.0.9 vendor/assets/src-tauri/src/main.rs
atome-0.5.3.8.8 vendor/assets/src-tauri/src/main.rs
atome-0.5.3.8.1 vendor/assets/src-tauri/src/main.rs
atome-0.5.3.8.0 vendor/assets/src-tauri/src/main.rs
atome-0.5.3.7.8 vendor/assets/src-tauri/src/main.rs
atome-0.5.3.7.3 vendor/assets/src-tauri/src/main.rs
atome-0.5.3.7.2 vendor/assets/src-tauri/src/main.rs
atome-0.5.3.4 vendor/assets/src-tauri/src/main.rs
atome-0.5.3.2 vendor/assets/src-tauri/src/main.rs
atome-0.5.2.8 vendor/assets/src-tauri/src/main.rs