#wayland #api-bindings #interface #user-interface #wayland-client #object #wayland-server

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

#373 in GUI

Download history 53911/week @ 2024-01-21 43633/week @ 2024-01-28 46253/week @ 2024-02-04 45066/week @ 2024-02-11 39482/week @ 2024-02-18 55181/week @ 2024-02-25 47316/week @ 2024-03-03 47691/week @ 2024-03-10 44353/week @ 2024-03-17 50723/week @ 2024-03-24 52212/week @ 2024-03-31 40667/week @ 2024-04-07 44466/week @ 2024-04-14 46968/week @ 2024-04-21 41420/week @ 2024-04-28 37983/week @ 2024-05-05

176,178 downloads per month
Used in 479 crates (4 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
~38K SLoC