Commit 031cbc2
Replace tray-icon with ldtray; make gui default; drop the -server build
ldtray loads every platform toolkit at runtime (libdbus/shell32/AppKit via
libloading) with zero compile-time GUI linkage, so one binary runs on both
desktops and headless servers — on a server Tray::new just returns an
error we ignore and run the worker without a tray. This removes the whole
reason the separate `-server` build existed.
- gui.rs rewritten against ldtray: worker on a background thread, a 1s
refresher thread rebuilds the menu (via TrayHandle::set_menu) to track
status, clicks handled in Tray::run on the main thread. ldtray also
provides desktop notifications, so notify-rust is gone too. Menu, GPU
list, pause/resume, and update-check feedback are unchanged in behavior.
- gui is now a default feature; the only shipped build carries the tray.
--no-default-features still yields a pure worker binary.
- Deps: drop tray-icon, gtk, glib, windows-sys, notify-rust; add ldtray.
CI drops the GTK/libxdo/appindicator apt install (nothing linked at
build time) and the build-server job; build is now plain --release.
- Auto-updater un-gated from the gui feature (the gating was a
-server artifact): a single update stream for the single build.
Both feature configs build/clippy/test/doc clean; ldtray tray verified
live on Linux (worker claims + runs). Bump to 0.1.17.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 77c9f3b commit 031cbc2
5 files changed
Lines changed: 228 additions & 1861 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 42 | + | |
| 43 | + | |
51 | 44 | | |
52 | 45 | | |
53 | 46 | | |
| |||
60 | 53 | | |
61 | 54 | | |
62 | 55 | | |
63 | | - | |
64 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
65 | 59 | | |
66 | 60 | | |
67 | 61 | | |
| |||
90 | 84 | | |
91 | 85 | | |
92 | 86 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
0 commit comments