Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [ ] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Closes #56314 When running `cargo run -p gpui --example hello_world` on a wayland linux machine, the code panics and give the following output: ``` thread 'main' (15645) panicked at crates/gpui_linux/src/linux.rs:55:14: internal error: entered unreachable code note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ``` and the related code is: https://github.com/zed-industries/zed/blob/c8f09caee42ea4e27991ca55257f6f9c7d7c67d2/crates/gpui_linux/src/linux.rs#L29-L57 `gpui::guess_compositor()` correctly returns `"Wayland"`, but the corresponding match arm is gated behind `#[cfg(feature = "wayland")]` in `gpui_linux`, and that feature is never enabled. During the extract gpui_platform refactor (#49277), the `wayland` and `x11` features were added to the `zed` binary's dependency on `gpui_platform`, but were missed in the `[dev-dependencies]` of `gpui/Cargo.toml`, which is what the examples use. This PR adds the missing features to the dev-dependency so that `gpui_platform` propagates them to `gpui_linux` when building examples. Release Notes: - N/A or Added/Fixed/Improved ... Co-authored-by: Kunall Banerjee <hey@kimchiii.space>
1 file changedLine totals unavailable