wayland-server 0.23.0

Bindings to the standard C implementation of the wayland protocol, server side.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern crate wayland_scanner;

use std::env::var;
use std::path::Path;
use wayland_scanner::*;

fn main() {
    let protocol_file = "./wayland.xml";

    let out_dir_str = var("OUT_DIR").unwrap();
    let out_dir = Path::new(&out_dir_str);

    generate_code(protocol_file, out_dir.join("wayland_api.rs"), Side::Server);
}