#wayland

wayland-commons

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

54 releases

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

#115 in GUI

Download history 17448/week @ 2020-11-07 18459/week @ 2020-11-14 20129/week @ 2020-11-21 18694/week @ 2020-11-28 17547/week @ 2020-12-05 18386/week @ 2020-12-12 14323/week @ 2020-12-19 13437/week @ 2020-12-26 17864/week @ 2021-01-02 18672/week @ 2021-01-09 15354/week @ 2021-01-16 17922/week @ 2021-01-23 17915/week @ 2021-01-30 15455/week @ 2021-02-06 14915/week @ 2021-02-13 16018/week @ 2021-02-20

71,247 downloads per month
Used in 365 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
~24K SLoC