#wayland

wayland-commons

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

47 releases

✓ Uses Rust 2018 edition

new 0.26.6 May 23, 2020
0.26.3 Apr 22, 2020
0.25.0 Feb 7, 2020
0.24.1 Dec 13, 2019
0.21.0-alpha1 Jul 18, 2018

#80 in GUI

Download history 9375/week @ 2020-01-25 7356/week @ 2020-02-01 8535/week @ 2020-02-08 8877/week @ 2020-02-15 9012/week @ 2020-02-22 8325/week @ 2020-02-29 6948/week @ 2020-03-07 8454/week @ 2020-03-14 8425/week @ 2020-03-21 8568/week @ 2020-03-28 9031/week @ 2020-04-04 9139/week @ 2020-04-11 9838/week @ 2020-04-18 10687/week @ 2020-04-25 13834/week @ 2020-05-02 12735/week @ 2020-05-09

42,971 downloads per month
Used in 346 crates (5 directly)

MIT license

99KB
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
~21K SLoC