wayland-protocol

Crates.iowayland-protocol
lib.rswayland-protocol
version0.2.0+wayland-1.18.0-protocols-1.20
created_at2025-12-28 19:21:21.249899+00
updated_at2025-12-31 22:31:01.751069+00
descriptionParses wayland.xml
homepage
repositoryhttps://github.com/jbatez/wayland-headers-rs
max_upload_size
id2009292
size225,990
Jo Bates (jbatez)

documentation

README

Wayland Protocol for Rust

This library parses parses Wayland protocol XML files into Rust data structures.

Example

List all Wayland interfaces:

fn main() {
    use wayland_protocol::*;

    let protocol = Protocol::wayland(); // wayland.xml
    for content in &protocol.contents {
        if let ProtocolContent::Interface(interface) = content {
            println!("{:?}", interface.name);
        }
    }
}
Commit count: 0

cargo fmt