Skip to content

chore(deps): move to gpui-kit 0.6.0 and crates.io gpui-pre, drop the zed git dependency - #320

Merged
Tryanks merged 1 commit into
mainfrom
chore/gpui-kit-0.6
Sep 3, 2026
Merged

chore(deps): move to gpui-kit 0.6.0 and crates.io gpui-pre, drop the zed git dependency#320
Tryanks merged 1 commit into
mainfrom
chore/gpui-kit-0.6

Conversation

@Tryanks

@Tryanks Tryanks commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Why

gpui-base 0.6.0 is now published from longbridge/gpui-kit and depends on the crates.io gpui-pre snapshot of zed's gpui instead of the zed git repo. Following it lets cargo unify our gpui with gpui-base's requirement, so the gpui version is driven by gpui-base's semver range and every zed-industries/zed git reference disappears from Cargo.lock.

gpui stays a direct dependency because gpui-base does not re-export it (76 files in crates/ui use gpui:: paths), but it is now gpui = { package = "gpui-pre", version = "0.3.1" } rather than a hand-aligned git rev.

What

  • crates/ui, crates/app: gpuigpui-pre, gpui_platformgpui-pre-platform; gpui-base, gpui-wry, gpui-component-macros → crates.io 0.6.0; assets crate renamed to gpui-kit-assets (kept under the old dependency key, assets.rs untouched).
  • crates/ui/build.rs: assets links key is now gpui-kit-default-icons.
  • crates/ui/src/theme.rs: gpui-base 0.6.0 adds Theme.appearance and ColorTokens.selection, makes ScrollbarTheme builder-only, and turns ResizableTheme handles into Option.
  • crates/ui/src/widgets/menu.rs: register_deferred_popover now returns an RAII token and unregister_deferred_popover is gone; the token lives in ContextMenuState and is dropped on dismiss.

Verification

  • cargo check --workspace --all-targets
  • cargo clippy --workspace --all-targets — no warnings ✅
  • cargo test --workspace — all green (tcode-ui: 301 passed) ✅

Note

Cargo resolved gpui-pre 0.3.3 (zed@5b055fa) while gpui-base was published against 0.3.1 (zed@801c087). gpui-pre patch versions are distinct zed snapshots, so cargo update can move gpui ahead of what gpui-base was tested with. That is how gpui-kit itself consumes it; builds and tests are clean at 0.3.3.

Not visually verified in the running app: context menu popovers, scrollbar styling, and resize handle colours are the behaviour-touching spots.

…zed git dependency

gpui-base 0.6.0 (now published from longbridge/gpui-kit) depends on the
crates.io `gpui-pre` snapshot of zed's gpui instead of the zed git repo.
Follow it: `gpui`/`gpui_platform` become `gpui-pre`/`gpui-pre-platform`
so cargo unifies them with gpui-base's requirement, and every
`zed-industries/zed` git reference disappears from Cargo.lock.

Also bump gpui-wry / gpui-component-macros to 0.6.0 and switch the
assets crate to its new name `gpui-kit-assets` (kept under the old
dependency key so `assets.rs` is untouched).

API adaptations for gpui-base 0.6.0:
- build.rs: the assets `links` key is now `gpui-kit-default-icons`.
- theme.rs: `Theme.appearance`, `ColorTokens.selection`,
  `ScrollbarTheme` builder, `ResizableTheme` handles are `Option`.
- menu.rs: `register_deferred_popover` returns an RAII token; hold it
  in `ContextMenuState` and drop it on dismiss.

Verified: cargo check --all-targets, clippy clean, cargo test --workspace green.
@Tryanks
Tryanks enabled auto-merge (squash) September 3, 2026 17:30
@Tryanks
Tryanks merged commit fec56cb into main Sep 3, 2026
5 of 6 checks passed
@Tryanks
Tryanks deleted the chore/gpui-kit-0.6 branch September 3, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant