#wayland #client

smithay-client-toolkit

Toolkit for making client wayland applications

17 releases (5 breaking)

0.6.0 Feb 18, 2019
0.4.5 Mar 5, 2019
0.4.4 Dec 27, 2018
0.4.2 Nov 14, 2018
0.2.6 Jul 14, 2018

#8 in GUI

Download history 3191/week @ 2018-11-21 3094/week @ 2018-11-28 3520/week @ 2018-12-05 3631/week @ 2018-12-12 2803/week @ 2018-12-19 3569/week @ 2018-12-26 3645/week @ 2019-01-02 3354/week @ 2019-01-09 3160/week @ 2019-01-16 3416/week @ 2019-01-23 3546/week @ 2019-01-30 3423/week @ 2019-02-06 3491/week @ 2019-02-13 3054/week @ 2019-02-20 3282/week @ 2019-02-27

14,335 downloads per month
Used in 153 crates (3 directly)

MIT license

453KB
7K SLoC

crates.io Build Status

Smithay's Client Toolkit

This crate is a toolkit for writing wayland clients in rust, on top of wayland-client.

Currently a work in progress, it currently provides the following utilities:

  • Automatic binding of general wayland globals (wl_compositor, wl_shm, etc..)
  • Abstraction to create windows (aka toplevel surfaces), abstracting the interaction with the shell (xdg_shell or wl_shell) and the drawing of decorations
  • Wrapper for wl_keyboard for automatic keymap interpretation using libxkbcommon.so.
  • Utilites for creating dpi aware surfaces.

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.22 to be used (using bitflags 1.0 for associated constants), and version 1.12 of the wayland system libraries.

Dependencies

~3MB
~49K SLoC