Skip to content

Commit f697c31

Browse files
authored
chore: Bump v0.10.0 (#3992)
Release prep for GPUI Kit v0.10.0. - Bump all crates to 0.10.0 and GPUI Fast to 0.1.16 (gpui-pre stays 0.3.12); refresh Cargo.lock and the version in gpui-shell docs. - GPUI Fast 0.1.16 adds a blanket `impl<T: Element> IntoElement for T`. Our own `IntoElement` impls on element types now conflict under the `gpui-fast` feature, so each is gated with `#[cfg(not(feature = "gpui-fast"))]`; gpui-pre still needs them. No behaviour change. - Minor bump: #3970 (`TextareaMode::Extras`) and #3765 (`text_gutter_margin` → `text_origin_offset`) carry breaking changes, and apps on GPUI Fast must drop their own `IntoElement` impls. Verified locally: the CI clippy commands (workspace, webview fast, shell all-targets), `gpui-component --no-default-features`, wasm32 check, and tests for gpui-component (fast, 813), gpui-kit (fast, 977), gpui-webview (fast), gpui-shell (124 integration incl. command_probe, unchanged expectations). 🤖 [Noop](https://huacnlee.github.io/noop) (release-manager) · AI agent acting for @huacnlee
1 parent 5bece8f commit f697c31

93 files changed

Lines changed: 235 additions & 171 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Cargo.lock‎

Lines changed: 58 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ publish = false
4949
edition = "2024"
5050

5151
[workspace.dependencies]
52-
gpui-kit = { path = "crates/kit", version = "0.9.1" }
53-
gpui-component = { path = "crates/component", version = "0.9.1" }
54-
gpui-base = { path = "crates/base", version = "0.9.1" }
55-
gpui-component-macros = { path = "crates/component-macros", version = "0.9.1" }
56-
gpui-kit-assets = { path = "crates/assets", version = "0.9.1" }
57-
gpui-fps = { path = "crates/fps", version = "0.9.1" }
58-
gpui-shell = { path = "crates/shell", version = "0.9.1" }
59-
gpui-webview = { path = "crates/webview", version = "0.9.1" }
52+
gpui-kit = { path = "crates/kit", version = "0.10.0" }
53+
gpui-component = { path = "crates/component", version = "0.10.0" }
54+
gpui-base = { path = "crates/base", version = "0.10.0" }
55+
gpui-component-macros = { path = "crates/component-macros", version = "0.10.0" }
56+
gpui-kit-assets = { path = "crates/assets", version = "0.10.0" }
57+
gpui-fps = { path = "crates/fps", version = "0.10.0" }
58+
gpui-shell = { path = "crates/shell", version = "0.10.0" }
59+
gpui-webview = { path = "crates/webview", version = "0.10.0" }
6060
story = { path = "crates/story" }
6161

6262
# GPUI comes from the `gpui-pre-*` snapshots of Zed's crates, and any snapshot
@@ -72,9 +72,9 @@ gpui_web = { package = "gpui-pre-web", version = "=0.3.12" }
7272
# Fast is optional; existing crates select it through their gpui-fast feature.
7373
# Explicit package fields make Cargo use these dependency keys as Rust crate names;
7474
# the packages declare the same library names as the pre backend.
75-
gpui-fast = { package = "gpui-fast", version = "0.1.14", features = ["windows-manifest-provided-by-host"] }
76-
gpui-fast-platform = { package = "gpui-fast-platform", version = "0.1.14", features = ["font-kit", "x11", "wayland", "runtime_shaders"] }
77-
gpui-fast-web = { package = "gpui-fast-web", version = "0.1.14" }
75+
gpui-fast = { package = "gpui-fast", version = "0.1.16", features = ["windows-manifest-provided-by-host"] }
76+
gpui-fast-platform = { package = "gpui-fast-platform", version = "0.1.16", features = ["font-kit", "x11", "wayland", "runtime_shaders"] }
77+
gpui-fast-web = { package = "gpui-fast-web", version = "0.1.16" }
7878
gpui_macros = { package = "gpui-pre-macros", version = "=0.3.12" }
7979
reqwest_client = { package = "gpui-pre-reqwest-client", version = "=0.3.12" }
8080
sum-tree = { package = "gpui-pre-sum-tree", version = "=0.3.12" }

‎crates/assets/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repository = "https://github.com/longbridge/gpui-kit"
99
readme = "README.md"
1010
edition.workspace = true
1111
publish = true
12-
version = "0.9.1"
12+
version = "0.10.0"
1313

1414
# Retain Cargo icon-directory metadata for existing build-script consumers.
1515
links = "gpui-kit-default-icons"

‎crates/base/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exclude = ["examples/"]
99
repository = "https://github.com/longbridge/gpui-kit"
1010
homepage = "https://gpui-kit.com"
1111
documentation = "https://docs.rs/gpui-base"
12-
version = "0.9.1"
12+
version = "0.10.0"
1313
publish = true
1414
edition.workspace = true
1515

‎crates/base/examples/native/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "gpui-base-examples"
33
default-run = "components"
4-
version = "0.9.1"
4+
version = "0.10.0"
55
publish = false
66
edition.workspace = true
77

‎crates/base/examples/showcase/components/text_view.rs‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ impl BaseShowcase {
5050
})
5151
}
5252

53-
fn text_view_document(&self, palette: ExamplePalette, style: TextViewStyle) -> impl IntoElement {
53+
fn text_view_document(
54+
&self,
55+
palette: ExamplePalette,
56+
style: TextViewStyle,
57+
) -> impl IntoElement {
5458
div()
5559
.id("text-view-example")
5660
.debug_selector(|| "text-view-example".into())

‎crates/base/examples/wasm/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "gpui-base-examples-wasm"
3-
version = "0.9.1"
3+
version = "0.10.0"
44
publish = false
55
edition.workspace = true
66

‎crates/base/src/a11y_disabled.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ impl<E: Element<PrepaintState = Option<gpui::Hitbox>> + InteractiveElement> A11y
6060
}
6161
}
6262

63+
#[cfg(not(feature = "gpui-fast"))]
6364
impl<E: Element> IntoElement for A11yDisabled<E> {
6465
type Element = Self;
6566

‎crates/base/src/focus_trap.rs‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use gpui::{
22
AnyElement, App, Bounds, Element, ElementId, FocusHandle, Global, GlobalElementId,
3-
InteractiveElement, Interactivity, IntoElement, LayoutId, ParentElement, Pixels,
4-
StatefulInteractiveElement, StyleRefinement, Styled, WeakFocusHandle, Window,
3+
InteractiveElement, Interactivity, LayoutId, ParentElement, Pixels, StatefulInteractiveElement,
4+
StyleRefinement, Styled, WeakFocusHandle, Window,
55
};
66
use std::collections::HashMap;
77

@@ -135,7 +135,8 @@ impl<E: InteractiveElement + ParentElement + Styled + Element> FocusTrapContaine
135135
}
136136
}
137137

138-
impl<E: InteractiveElement + ParentElement + Styled + Element> IntoElement
138+
#[cfg(not(feature = "gpui-fast"))]
139+
impl<E: InteractiveElement + ParentElement + Styled + Element> gpui::IntoElement
139140
for FocusTrapContainer<E>
140141
{
141142
type Element = Self;

‎crates/base/src/input/base/element.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ impl<M: InputModeKind> EditorScrollbar<M> {
268268
}
269269
}
270270

271+
#[cfg(not(feature = "gpui-fast"))]
271272
impl<M: InputModeKind> IntoElement for EditorScrollbar<M> {
272273
type Element = Self;
273274

@@ -2994,6 +2995,7 @@ fn snap_caret_to_device_pixels(bounds: Bounds<Pixels>, scale_factor: f32) -> Bou
29942995
Bounds::new(point(x, bounds.origin.y), size(width, bounds.size.height))
29952996
}
29962997

2998+
#[cfg(not(feature = "gpui-fast"))]
29972999
impl<M: InputModeKind> IntoElement for TextElement<M> {
29983000
type Element = Self;
29993001

0 commit comments

Comments
 (0)