# #[tauri::command] fn greet() { #[cfg(windows)] { println!("I only run on Windows"); } println!("I always run"); }
# #[cfg(windows)] #[tauri::command] fn greet() { println!("I run on windows"); } #[cfg(not(windows))] #[tauri::command] fn greet() { println!("I run everywhere else"); }