bite-gpui-ce 0.20260928.0

A community fork of Zed's GPU-accelerated UI framework
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use gpui::{App, Window};
use gpui_macros::{AppContext, VisualContext};

#[derive(AppContext, VisualContext)]
struct CustomContext<'a, 'b> {
    #[app]
    app: &'a mut App,
    #[window]
    window: &'b mut Window,
}

#[test]
fn derives_context_traits() {
    let _ = std::marker::PhantomData::<CustomContext<'static, 'static>>;
}