#wayland #codegen

wayland-scanner

Wayland Scanner for generating rust APIs from XML wayland protocol files. Intented for use with wayland-sys. You should only need this crate if you are working on custom wayland protocol extensions. Look at the crate wayland-client for usable bindings

66 releases (13 breaking)

0.21.0-alpha1 Jul 18, 2018
0.20.10 Jun 4, 2018
0.14.1 Mar 9, 2018
0.12.4 Dec 17, 2017
0.2.0 Nov 19, 2015

#3 in GUI

Download history 1794/week @ 2018-05-06 2326/week @ 2018-05-13 1921/week @ 2018-05-20 2443/week @ 2018-05-27 3879/week @ 2018-06-03 2996/week @ 2018-06-10 2599/week @ 2018-06-17 2640/week @ 2018-06-24 3171/week @ 2018-07-01 2536/week @ 2018-07-08 2672/week @ 2018-07-15 3596/week @ 2018-07-22 2312/week @ 2018-07-29

11,530 downloads per month

crates.io Build Status codecov

Wayland client

These are bindings to the reference implementation of the wayland protocol. This is not a pure rust implementation of the wayland protocol, and thus requires libwayland-client.so to be available.

This repository actually hosts 6 crates. The 4 main crates you'll likely want to use:

  • wayland-client and wayland-server are the main crates for client and server side bindings
  • wayland-protocols regroups bindings on the official protocol extentions available
  • wayland-commons contains various definitions that are used by the other crates. It is re-exported in both wayland-client and wayland-server.

And 2 internal crates, that you'll need only for integrating a custom protocol extension:

  • wayland-sys is the actual C bindings, on which the crates are built
  • wayland-scanner is the crate used to convert the XML protocol specifications into rust code

Documentation

The documentation for the master branch is available online.

The documentation for the releases can be found on docs.rs:

Requirements

Requires at least rust 1.20 to be used (using bitflags 1.0 for associated constants), and version 1.12 of the wayland system libraries.

MIT license

Dependencies

Reverse deps