#wayland-client #wayland #client

smithay-client-toolkit

Toolkit for making client wayland applications

50 releases

0.19.2 Jul 15, 2024
0.18.1 Feb 8, 2024
0.18.0 Oct 10, 2023
0.17.0 Apr 5, 2023
0.2.6 Jul 14, 2018

#12 in GUI

Download history 101969/week @ 2024-07-30 111377/week @ 2024-08-06 115440/week @ 2024-08-13 109323/week @ 2024-08-20 117974/week @ 2024-08-27 113753/week @ 2024-09-03 109670/week @ 2024-09-10 110020/week @ 2024-09-17 123205/week @ 2024-09-24 116686/week @ 2024-10-01 101060/week @ 2024-10-08 111858/week @ 2024-10-15 115447/week @ 2024-10-22 109426/week @ 2024-10-29 100926/week @ 2024-11-05 97031/week @ 2024-11-12

439,120 downloads per month
Used in 854 crates (29 directly)

MIT license

405KB
9K SLoC

crates.io docs.rs 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.65 to be used and version 1.15 of the wayland system libraries if using the system backend.

Dependencies

~6–16MB
~209K SLoC