|
@@ -1,14 +1,9 @@
|
|
|
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
|
|
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
|
|
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
|
|
|
|
|
|
-// fn main() {
|
|
|
|
|
-// app_lib::run();
|
|
|
|
|
-// }
|
|
|
|
|
-
|
|
|
|
|
fn main() {
|
|
fn main() {
|
|
|
tauri::Builder::default()
|
|
tauri::Builder::default()
|
|
|
.invoke_handler(tauri::generate_handler![
|
|
.invoke_handler(tauri::generate_handler![
|
|
|
- greet,
|
|
|
|
|
receive_messages,
|
|
receive_messages,
|
|
|
send_message
|
|
send_message
|
|
|
])
|
|
])
|
|
@@ -16,11 +11,6 @@ fn main() {
|
|
|
.expect("error while running tauri application");
|
|
.expect("error while running tauri application");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-#[tauri::command]
|
|
|
|
|
-fn greet(name: &str) -> String {
|
|
|
|
|
- format!("Hello, {}!", name)
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
#[tauri::command]
|
|
#[tauri::command]
|
|
|
fn receive_messages(hostname: &str, password: &str) -> Vec<(u128, String, String, String)> {
|
|
fn receive_messages(hostname: &str, password: &str) -> Vec<(u128, String, String, String)> {
|
|
|
let msges = client_shared::utils::rx_messages(hostname, password, 2);
|
|
let msges = client_shared::utils::rx_messages(hostname, password, 2);
|