1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 21:30:03 -04:00
Files
egui/crates/egui_inspection
lucasmerlin d67862ace6 egui_inspection: cross-platform local socket via interprocess
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().
2026-05-26 14:26:18 +02:00
..

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 by egui_kittest's inspector, the external kittest_inspector UI, and the egui_kittest_mcp server.

  • plugin (opt-in): an egui::Plugin implementation that streams frames + AccessKit tree updates to an inspector over a unix domain socket and applies received InspectorCommands back into the running app. Auto-attaches when EGUI_INSPECTION_SOCKET is set.