fix(build): add reqwest, fix exhaustive match, tauri deprecation, Cargo.lock

- Add reqwest 0.12 (json + stream features) — was missing from Cargo.toml
  causing chat_stream to fail to compile
- Add Android/IpadOs arms to SourceOs match in chat command
- Add tauri::Manager import to notify.rs (needed for .state())
- Replace deprecated menu_on_left_click with show_menu_on_left_click
- Remove desktopTemplate from tauri.conf.json (not in tauri-utils 2.9.2 schema)
- Commit Cargo.lock so cross-machine builds pin identical crate versions

All 42 unit tests pass on Linux Mint 22.3 (Muninn).
This commit is contained in:
pyr0ball 2026-05-20 08:32:39 -07:00
parent e4a682be2f
commit f0269c62a5
7 changed files with 6165 additions and 6 deletions

6158
src-tauri/Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -31,6 +31,7 @@ tauri-plugin-log = "2"
tauri-plugin-notification = "2"
tauri-plugin-shell = "2"
tauri-plugin-fs = "2"
reqwest = { version = "0.12", features = ["json", "stream"] }
[dev-dependencies]
tempfile = "3"

View file

@ -111,6 +111,8 @@ pub async fn chat(
crate::config::SourceOs::Macos => "macOS",
crate::config::SourceOs::Windows => "Windows",
crate::config::SourceOs::Linux => "Linux",
crate::config::SourceOs::Android => "Android",
crate::config::SourceOs::IpadOs => "iPad/iOS",
crate::config::SourceOs::Unknown => "Unknown",
};
(os.to_string(), m.distro.clone())

View file

@ -1,6 +1,6 @@
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Mutex;
use tauri::{AppHandle, Emitter, Runtime};
use tauri::{AppHandle, Emitter, Manager, Runtime};
use tauri_plugin_notification::NotificationExt;
use crate::commands::AppState;

View file

@ -1,5 +1,5 @@
use crate::watcher::{EventSource, SystemEvent};
use anyhow::{Context, Result};
use anyhow::Result;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;

View file

@ -14,7 +14,7 @@ pub fn build_tray<R: Runtime>(app: &AppHandle<R>) -> tauri::Result<()> {
.tooltip("Robin")
.icon(app.default_window_icon().cloned().unwrap())
.menu(&menu)
.menu_on_left_click(false)
.show_menu_on_left_click(false)
.on_menu_event(|app, event| match event.id.as_ref() {
"open" => toggle_chat_panel(app),
"quit" => app.exit(0),

View file

@ -48,8 +48,6 @@
"icons/icon.icns",
"icons/icon.ico"
],
"linux": {
"desktopTemplate": "../assets/robin.desktop"
}
"linux": {}
}
}