extern crate wayland_client;
use wayland_client::{Display, GlobalManager};
use wayland_client::protocol::wl_display::RequestsTrait;
fn main() {
let (display, mut event_queue) = Display::connect_to_env().unwrap();
let globals = GlobalManager::new(display.get_registry().unwrap());
event_queue.sync_roundtrip().unwrap();
for (id, interface, version) in globals.list() {
println!("{}: {} (version {})", id, interface, version);
}
}