#wayland #client

smithay-client-toolkit

Toolkit for making client wayland applications

25 releases

✓ Uses Rust 2018 edition

0.7.0 Feb 7, 2020
0.6.4 Aug 27, 2019
0.6.3 Jun 29, 2019
0.6.0 Feb 18, 2019
0.2.6 Jul 14, 2018

#24 in GUI

Download history 6499/week @ 2019-11-01 7160/week @ 2019-11-08 7113/week @ 2019-11-15 7301/week @ 2019-11-22 8272/week @ 2019-11-29 9264/week @ 2019-12-06 14309/week @ 2019-12-13 7123/week @ 2019-12-20 15839/week @ 2019-12-27 10420/week @ 2020-01-03 9966/week @ 2020-01-10 9084/week @ 2020-01-17 8975/week @ 2020-01-24 7193/week @ 2020-01-31 8235/week @ 2020-02-07

40,481 downloads per month
Used in 270 crates (5 directly)

MIT license

495KB
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

~3.5MB
~61K SLoC