#wayland

wayland-commons

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

49 releases (8 breaking)

0.28.0 Sep 14, 2020
0.27.0 Jul 3, 2020
0.26.6 May 23, 2020
0.25.0 Feb 7, 2020
0.21.0-alpha1 Jul 18, 2018

#44 in GUI

Download history 13929/week @ 2020-06-09 12157/week @ 2020-06-16 13492/week @ 2020-06-23 12796/week @ 2020-06-30 13316/week @ 2020-07-07 14326/week @ 2020-07-14 15113/week @ 2020-07-21 15446/week @ 2020-07-28 13697/week @ 2020-08-04 15213/week @ 2020-08-11 15684/week @ 2020-08-18 16524/week @ 2020-08-25 16037/week @ 2020-09-01 15737/week @ 2020-09-08 14574/week @ 2020-09-15 14875/week @ 2020-09-22

63,579 downloads per month
Used in 401 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

~1MB
~23K SLoC