| Crates.io | wayland-headers |
| lib.rs | wayland-headers |
| version | 0.2.0+wayland-1.18.0-protocols-1.20 |
| created_at | 2025-12-28 19:21:20.800742+00 |
| updated_at | 2025-12-31 22:31:01.241132+00 |
| description | Minimalist Rust FFI bindings for Wayland |
| homepage | |
| repository | https://github.com/jbatez/wayland-headers-rs |
| max_upload_size | |
| id | 2009291 |
| size | 219,926 |
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.
wl_interface StaticsFor 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.