use relm4::{gtk, ComponentParts, ComponentSender, SimpleComponent}; struct TestComponent; #[relm4_macros::component] impl SimpleComponent for TestComponent { type Init = (); type Input = (); type Output = (); view! { gtk::Window {} } fn init( _: Self::Init, root: Self::Root, _sender: ComponentSender, ) -> ComponentParts { let model = Self; let widgets = view_output!(); ComponentParts { model, widgets } } } fn main() {}