#wayland #client

smithay-client-toolkit

Toolkit for making client wayland applications

18 releases (5 breaking)

0.6.1 Apr 7, 2019
0.6.0 Feb 18, 2019
0.5.0 Feb 5, 2019
0.4.4 Dec 27, 2018
0.2.6 Jul 14, 2018

#19 in GUI

Download history 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 4214/week @ 2019-03-06 4085/week @ 2019-03-13 3840/week @ 2019-03-20 3435/week @ 2019-03-27 4439/week @ 2019-04-03 4607/week @ 2019-04-10 4744/week @ 2019-04-17 5451/week @ 2019-04-24 5087/week @ 2019-05-01

15,205 downloads per month
Used in 163 crates (3 directly)

MIT license

459KB
7.5K 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
~50K SLoC