mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 21:30:03 -04:00
Replace std::os::unix::net::UnixStream in the InspectionPlugin with the interprocess crate's local_socket::Stream, so the transport works on Windows (named pipe) as well as unix/macOS (unix domain socket). - New transport module (transport feature) with socket_name() and generate_socket_target() — one shared, platform-split place to build/allocate local-socket names, used by both ends of the connection. - Drop the cfg(unix) gates on the plugin module; gate on the plugin feature only. - attach() now takes a socket name string and connects via interprocess; the stream is split with Stream::split() instead of UnixStream::try_clone().
egui_inspection
Wire protocol and egui::Plugin for live inspection of running egui apps and
kittest harnesses.
Two layers:
-
protocol(default feature): length-prefixed MessagePack messages used byegui_kittest's inspector, the externalkittest_inspectorUI, and theegui_kittest_mcpserver. -
plugin(opt-in): anegui::Pluginimplementation that streams frames + AccessKit tree updates to an inspector over a unix domain socket and applies receivedInspectorCommands back into the running app. Auto-attaches whenEGUI_INSPECTION_SOCKETis set.