A good starting point could be https://github.com/Smithay/wayland-rs/blob/master/wayland-client/examples/simple_window.rs