32 releases

0.3.3 Jan 29, 2024
0.3.2 Sep 25, 2023
0.2.0 Jul 13, 2023
0.1.1 Feb 16, 2023
0.1.0-alpha9 Mar 29, 2022

#104 in GUI

Download history 24899/week @ 2023-12-23 28674/week @ 2023-12-30 33174/week @ 2024-01-06 42370/week @ 2024-01-13 46588/week @ 2024-01-20 50026/week @ 2024-01-27 56929/week @ 2024-02-03 56854/week @ 2024-02-10 52187/week @ 2024-02-17 54175/week @ 2024-02-24 55112/week @ 2024-03-02 54590/week @ 2024-03-09 58918/week @ 2024-03-16 72316/week @ 2024-03-23 63271/week @ 2024-03-30 50699/week @ 2024-04-06

253,376 downloads per month
Used in 349 crates (23 directly)

MIT license

395KB
9K SLoC

crates.io docs.rs Continuous Integration codecov

wayland-backend

Backend API for wayland crates

This crate provide low-level APIs for interacting with the Wayland protocol, both client-side and server-side. For higher-level interfaces, see the wayland-client and wayland-server crates.

Two possible backends are provided by this crate: the system backend ([sys] module) which relies on the system-provided wayland libraries, and the rust backend ([rs] module) which is an alternative rust implementation of the protocol. The rust backend is always available, and the system backend is controlled by the client_system and server_system cargo features. The dlopen cargo feature ensures that the system wayland libraries are loaded dynamically at runtime, so that your executable does not link them and can gracefully handle their absence (for example by falling back to X11).

Additionnaly the default backends are reexported as toplevel client and server modules in this crate. For both client and server, the default backend is the system one if the associated cargo feature is enabled, and the rust one otherwise. Using these reexports is the recommended way to use the crate.

Both backends have the exact same API, except that the system backend additionnaly provides functions related to FFI.

Dependencies

~2–12MB
~122K SLoC