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