wayland-headers

Crates.iowayland-headers
lib.rswayland-headers
version0.2.0+wayland-1.18.0-protocols-1.20
created_at2025-12-28 19:21:20.800742+00
updated_at2025-12-31 22:31:01.241132+00
descriptionMinimalist Rust FFI bindings for Wayland
homepage
repositoryhttps://github.com/jbatez/wayland-headers-rs
max_upload_size
id2009291
size219,926
Jo Bates (jbatez)

documentation

README

Wayland Headers for Rust

This library contains minimalist Rust FFI bindings for Wayland in a way that's roughly equivalent to the official Wayland 1.18.0 headers for C/C++ along with the stable protocols found in wayland-protocols 1.20. It makes no attempt at providing safe or idiomatic Rust wrappers and doesn't rename any C identifiers to match Rust's style guidelines.

For example, the following Rust code:

use wayland_headers::wayland_client::*;

is roughly equivalent to the following C code:

#include <wayland-client.h>

This library is based specifically on Wayland 1.18.0 and protocols 1.20 since those are the versions provided by Steam Runtime 3 'sniper'.

Using this library does not automatically link against any libwayland-*.so libraries.

Extension Protocol wl_interface Statics

For the extension protocol wl_interface statics (e.g. xdg_shell_client_protocol::xdg_popup_interface), only external declarations are provided. See wayland-protocol-statics for a convenient way to include their definitions in a Rust program.

Commit count: 0

cargo fmt