#wayland #server #compositor


Bindings to the standard C implementation of the wayland protocol, server side

115 releases

0.30.0-beta.8 Jul 15, 2022
0.30.0-beta.6 Jun 25, 2022
0.30.0-alpha9 Mar 29, 2022
0.29.1 Oct 17, 2021
0.7.6 Nov 12, 2016

#37 in GUI

Download history 1085/week @ 2022-04-21 2338/week @ 2022-04-28 2151/week @ 2022-05-05 3031/week @ 2022-05-12 1830/week @ 2022-05-19 2224/week @ 2022-05-26 2624/week @ 2022-06-02 2555/week @ 2022-06-09 1458/week @ 2022-06-16 1409/week @ 2022-06-23 1064/week @ 2022-06-30 1166/week @ 2022-07-07 1131/week @ 2022-07-14 1467/week @ 2022-07-21 1473/week @ 2022-07-28 1459/week @ 2022-08-04

5,811 downloads per month
Used in 13 crates (12 directly)

MIT license

2.5K SLoC

crates.io docs.rs Continuous Integration codecov


Server side API for the Wayland protocol. This crate provides infrastructure for manipulating Wayland objects, as well as object definitions for the core Wayland protocol. Protocol extensions can be supported as well by combining this crate with wayland-protocols, which provides object definitions for a large set of extensions.

Note: This crate is a low-level interface to the Wayland protocol. If you are looking for a more battery-included toolkit for writing a Wayland server, you may consider Smithay, which is a Wayland server framework built on top of it.

The crate has different backends to Wayland protocol serialization:

  • By default, it uses a pure-rust implementation of the protocol, and contains little unsafe code.
  • Activating the use_system_lib makes it instead bind to the system libwayland-server.so. This allows you to access C pointer versions of the wayland objects, which is necessary for interfacing with other non-Rust Wayland-related libraries (such as for OpenGL support, see the wayland-egl crate).
  • Activating the dlopen implies use_system_lib, but additionaly the crate will not explicitly link to libwayland-server.so and instead try to open it at runtime, and return an error if it cannot find it. This allows you to build apps that can gracefully run in non-Wayland environment without needing compile-time switches.


~33K SLoC