#wayland #pixel #buffer #io #mouse-input #windowing #keyboard #game

bin+lib wlib

A simple wayland windowing library that gives you a pixel buffer and not much else

9 releases

Uses new Rust 2024

0.2.5 Feb 21, 2026
0.2.3 Feb 13, 2026
0.1.3 Feb 8, 2026

#1055 in Hardware support

MIT license

36KB
807 lines

Wlib

A simple library for creating a wayland window and manipulating its raw pixel buffer.

crates.io, docs.rs

Use case

If you want to create a CPU rendered application, and have wayland support. For example, a doomlike game or a software rasteriser.

Features

  • Keyboard and mouse input
  • Custom window sizing
  • Confirm close

Requirements

  • Building needs linux-headers installed to get the named raw key codes.

Example

main.rs outputs:

image

Dependencies

~11–18MB
~282K SLoC