From a70ccf31cd379bea494bd6d0dedced728825c21e Mon Sep 17 00:00:00 2001 From: kirillDevPro <113171057+kirillDevPro@users.noreply.github.com> Date: Wed, 14 Oct 2026 19:59:54 +0200 Subject: [PATCH] fix(build): declare raw-window-handle for macOS The macOS chart shot (panels/chart/shot/mac.rs) reads the window's AppKit view through raw_window_handle, but the crate was declared only for Windows, so both macOS release slices failed with E0433. Declare it in the macOS block too; the lock already carries 0.6.2. --- crates/moon-ui-gpui/Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/moon-ui-gpui/Cargo.toml b/crates/moon-ui-gpui/Cargo.toml index 9af8a4106..52330fa12 100644 --- a/crates/moon-ui-gpui/Cargo.toml +++ b/crates/moon-ui-gpui/Cargo.toml @@ -164,6 +164,8 @@ objc2-foundation = "0.3.2" objc2-app-kit = { version = "0.3.2", default-features = false, features = ["std", "NSAttributedString", "NSBitmapImageRep", "NSColor", "NSFont", "NSFontDescriptor", "NSGraphics", "NSGraphicsContext", "NSImageRep", "NSResponder", "NSStringDrawing", "NSView", "NSWindow", "objc2-core-foundation", "objc2-core-graphics", "objc2-quartz-core"] } objc2-quartz-core = { version = "0.3.2", default-features = false, features = ["std", "CALayer", "CATransaction"] } objc2-core-graphics = { version = "0.3.2", default-features = false, features = ["std", "CGImage"] } +# The AppKit NSView behind a GPUI window, read by the chart shot (panels/chart/shot/mac.rs). +raw-window-handle = "0.6" [dev-dependencies] # `test-support` is what makes `gpui::TestAppContext` / `gpui::VisualTestContext` -- and with them