feat(openwrt): build router detection and provisioning readiness flow

This commit is contained in:
litoral05
2026-05-06 15:15:45 +01:00
parent 523ce02b03
commit 3d7c7685aa
8 changed files with 881 additions and 10 deletions
+5 -6
View File
@@ -1,14 +1,13 @@
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
#[tauri::command]
fn greet(name: &str) -> String {
format!("Hello, {}! You've been greeted from Rust!", name)
}
mod openwrt;
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_fs::init())
.invoke_handler(tauri::generate_handler![
openwrt::detect_openwrt_router,
openwrt::test_openwrt_ssh
])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}