gpui-devtools 0.1.0

Framework-agnostic developer tools for GPUI applications
Documentation
  • Coverage
  • 0%
    0 out of 14 items documented0 out of 6 items with examples
  • Size
  • Source code size: 189.52 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 906.1 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1m 41s Average build duration of successful builds.
  • all releases: 1m 44s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • joris-gallot/gpui-devtools
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • joris-gallot

gpui-devtools

MIT-licensed, framework-agnostic developer tools for GPUI applications.

The first release provides an element picker and inspector with:

  • source locations and GPUI element IDs
  • element bounds and content size
  • raw Div style refinements
  • a global toggle action and optional default keybinding

Install

[features]
devtools = ["dep:gpui-devtools", "gpui/inspector"]

[dependencies]
gpui-devtools = { git = "https://github.com/joris-gallot/gpui-devtools", optional = true }

Use

app.run(|cx| {
    #[cfg(feature = "devtools")]
    gpui_devtools::init(cx);

    // Initialize the rest of the app.
});

The default shortcut is cmd-alt-i on macOS and ctrl-alt-i elsewhere. You can dispatch gpui_devtools::ToggleInspector yourself or customize installation:

gpui_devtools::init_with(
    gpui_devtools::Config::default().key_binding(None),
    cx,
);

The inspector relies only on GPUI's Apache-2.0 inspector hooks. Its implementation is original and does not include Zed's GPL-licensed inspector UI.

Roadmap

  • computed style view and temporary style editing
  • render, layout and paint profiler
  • repaint highlighting
  • focus and keybinding inspector
  • action and event timeline
  • entity lifecycle diagnostics