xcb 1.7.0

Rust safe bindings for XCB
Documentation
1
2
3
4
5
6
7
8
fn main() {
    let dpy = ":0";
    if let Ok((_, _)) = xcb::Connection::connect(Some(&dpy)) {
        println!("Connected to X on display \"{}\"!", dpy);
    } else {
        println!("Could not connect to X!");
    }
}