#wayland #wayland-client #user-interface #object #type #wayland-protocol #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

#260 in GUI

Download history 63939/week @ 2023-11-18 77458/week @ 2023-11-25 61383/week @ 2023-12-02 57628/week @ 2023-12-09 71113/week @ 2023-12-16 26099/week @ 2023-12-23 39775/week @ 2023-12-30 50578/week @ 2024-01-06 47461/week @ 2024-01-13 55278/week @ 2024-01-20 43831/week @ 2024-01-27 45138/week @ 2024-02-03 46087/week @ 2024-02-10 39944/week @ 2024-02-17 53842/week @ 2024-02-24 48004/week @ 2024-03-02

196,822 downloads per month
Used in 486 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
~37K SLoC