// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/ mod openwrt; #[cfg_attr(mobile, tauri::mobile_entry_point)] pub fn run() { tauri::Builder::default() .invoke_handler(tauri::generate_handler![ openwrt::detect_openwrt_router, openwrt::test_openwrt_ssh, openwrt::prepare_openwrt_router, openwrt::install_openwrt_openvpn_packages ]) .run(tauri::generate_context!()) .expect("error while running tauri application"); }