#wayland-client #wayland #wayland-protocol #client-server #user-interface #protocols #api-bindings

wayland-commons

Common types and structures used by wayland-client and wayland-server

61 releases

0.29.5 Aug 25, 2022
0.29.4 Jan 6, 2022
0.29.1 Oct 17, 2021
0.29.0 Jul 24, 2021
0.21.0-alpha1 Jul 18, 2018

#1277 in GUI

Download history 33284/week @ 2024-11-08 58364/week @ 2024-11-15 32910/week @ 2024-11-22 39179/week @ 2024-11-29 40197/week @ 2024-12-06 41497/week @ 2024-12-13 13439/week @ 2024-12-20 10847/week @ 2024-12-27 29836/week @ 2025-01-03 47196/week @ 2025-01-10 29510/week @ 2025-01-17 27891/week @ 2025-01-24 49251/week @ 2025-01-31 109869/week @ 2025-02-07 44292/week @ 2025-02-14

210,513 downloads per month
Used in 489 crates (3 directly)

MIT license

110KB
2K SLoC

crates.io docs.rs Continuous Integration codecov

wayland-commons

This crate regroups common routine and code used by wayland-client and wayland-server, as such, you should not need to use it directly, but instead use one of these two crates.


lib.rs:

Common definitions for wayland

This crate hosts common type and traits used to represent wayland messages and routines in the wayland-client and wayland-server crates.

This notably includes the Interface trait, which can exhaustively describe any wayland interface. Its implementations are intended to be generated by the wayland-scanner crate.

The principal user-facing definition provided by this crate is the Implementation trait, which as a user of wayland-client or wayland-server you will be using to define objects able to handle the messages your program receives. Note that this trait is auto-implemented for closures with appropriate signature, for convenience.

Dependencies

~2MB
~38K SLoC