A Mac could install PF rules and advertise itself while IPv4 forwarding was still off. Check and enable forwarding when applying the offer and refresh the physical route when the uplink changes. Try the agent's existing privileges first. When an existing utun needs additional permission, the foreground tray or CLI can obtain an administrator grant scoped to the local UID and overlay subnet. Reconcile the current offer after the dialog so a withdrawal during authorization stays effective. A user agent denied a host utun can serve peers over bounded TCP, UDP and ICMP echo sockets bound to the physical interface. Keep host routes and ordinary local application traffic on the system-utun path. Preserve the saved choice for intentionally off-host setups and report readiness separately. Report exit selection directly to the selected peer over its authenticated session. Older peers appear for one minute following forwarded traffic. The optional announcement trailer remains compatible with control v8. Local IPC v29 carries the new status and authorization results. Keep the exit user count, left-aligned names and one-row scroll controls in a single fixed-height block alongside the network details. Show health and a small traffic trace on folded cards. Open desktop Devices at a usable width and keep the exit action clickable in its compact layout. Replace Android's per-card exit buttons with a fixed thumb-sized control. The chooser and Quick Settings share one list with a single local option, network groups, measured latency and an accessible confirmation sheet. Release the applications and packages as 1.0.9. On macOS, checked formatting, strict workspace Clippy and the workspace all-target test suite, including real encrypted agents and loopback TCP, UDP and ICMP. Ran the opt-in user-mode exit UDP round trip on a physical IPv4 interface. Verified the authorization scripts and syntax of their PF, sudoers and AppleScript components. The privileged two-utun kernel test is reserved for an isolated macOS runner. Rendered phone and desktop layouts in both themes, built the arm64 Android debug APK and cross- checked all workspace targets for Windows GNU.
45 lines
1.8 KiB
TOML
45 lines
1.8 KiB
TOML
[package]
|
|
name = "tsunagi-tray"
|
|
version = "1.0.9"
|
|
description = "Tray application to manage a running tsunagi agent."
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
|
|
[[bin]]
|
|
name = "tsunagi-tray"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
tsunagi-ui = { path = "../tsunagi-ui" }
|
|
# The agent control client and the report types: the GUI is a thin client over
|
|
# the same local control interface the CLI uses, so it reuses these directly
|
|
# and never re-implements the protocol.
|
|
tsunagi-core = { path = "../tsunagi-core", version = "1.0.9" }
|
|
# Native, lightweight GUI — no web engine. eframe re-exports egui.
|
|
eframe = { version = "0.31", default-features = false, features = ["default_fonts", "glow", "wayland", "x11"] }
|
|
# Cross-platform tray icon + menu (Windows tray, macOS menu bar, Linux SNI).
|
|
# libxdo only implements predefined Copy/Cut/Paste/SelectAll menu actions,
|
|
# which this tray does not use. Avoid a distro-specific libxdo SONAME dependency.
|
|
tray-icon = { version = "0.21", default-features = false }
|
|
# Background worker that talks to the agent off the UI thread.
|
|
tokio = { version = "1.53", features = ["rt", "rt-multi-thread", "sync", "time", "macros"] }
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
egui-phosphor = "0.9"
|
|
|
|
# Linux only: tray-icon (already GTK-based there) needs the app to initialise
|
|
# GTK and run its main loop.
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
gtk = "0.18"
|
|
|
|
# Windows and macOS: the tray process has no GUI toolkit, only an event loop to
|
|
# serve the icon (and, on macOS, the Accessory activation policy that keeps it
|
|
# out of the Dock). Pinned to eframe's winit so the types unify.
|
|
[target.'cfg(any(windows, target_os = "macos"))'.dependencies]
|
|
winit = "0.30"
|
|
|
|
[lints]
|
|
workspace = true
|