#wayland

wayland-commons

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

56 releases

new 0.29.0 Jul 24, 2021
0.28.5 Feb 26, 2021
0.28.3 Dec 30, 2020
0.28.2 Nov 9, 2020
0.21.0-alpha1 Jul 18, 2018

#50 in GUI

Download history 14811/week @ 2021-04-05 16775/week @ 2021-04-12 15613/week @ 2021-04-19 17170/week @ 2021-04-26 15884/week @ 2021-05-03 16240/week @ 2021-05-10 16400/week @ 2021-05-17 15306/week @ 2021-05-24 16958/week @ 2021-05-31 14396/week @ 2021-06-07 14407/week @ 2021-06-14 14579/week @ 2021-06-21 16488/week @ 2021-06-28 15564/week @ 2021-07-05 17422/week @ 2021-07-12 13961/week @ 2021-07-19

67,522 downloads per month
Used in 369 crates (7 directly)

MIT license

105KB
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

~1.5MB
~26K SLoC