2021-02-21 19:48:08 +03:00
|
|
|
#![cfg_attr(
|
|
|
|
all(not(debug_assertions), target_os = "windows"),
|
|
|
|
windows_subsystem = "windows"
|
|
|
|
)]
|
|
|
|
|
2021-02-28 21:55:48 +03:00
|
|
|
#[tauri::command]
|
|
|
|
fn my_custom_command(argument: String) {
|
|
|
|
println!("{}", argument);
|
|
|
|
}
|
|
|
|
|
2021-02-21 19:48:08 +03:00
|
|
|
fn main() {
|
2021-04-06 23:50:53 +03:00
|
|
|
tauri::Builder::default()
|
2021-02-28 21:55:48 +03:00
|
|
|
.invoke_handler(tauri::generate_handler![my_custom_command])
|
2021-04-06 23:50:53 +03:00
|
|
|
.run(tauri::generate_context!())
|
2021-04-04 03:41:04 +03:00
|
|
|
.expect("error while running tauri application");
|
2021-02-21 19:48:08 +03:00
|
|
|
}
|