Crates.io | smithay |
lib.rs | smithay |
version | 0.3.0 |
source | src |
created_at | 2017-10-01 21:15:57.630419 |
updated_at | 2021-07-25 10:08:07.694301 |
description | Smithay is a library for writing wayland compositors. |
homepage | https://smithay.github.io/ |
repository | https://github.com/Smithay/smithay |
max_upload_size | |
id | 34110 |
size | 1,030,713 |
A smithy for rusty wayland compositors
Smithay aims to provide building blocks to create wayland compositors in Rust. While not being a full-blown compositor, it'll provide objects and interfaces implementing common functionalities that pretty much any compositor will need, in a generic fashion.
Also:
Like others, Smithay as a compositor library has its own sample compositor: anvil.
You can run it with cargo after having cloned this repository:
cd anvil;
cargo run -- --{backend}
The currently available backends are:
--winit
: start anvil as a Winit application. This allows you to run it
inside of an other X11 or Wayland session.
--tty-udev
: start anvil in a tty with udev support. This is the "traditional" launch of a Wayland
compositor. Note that this requires you to start anvil as root if your system does not have logind
available (consolekit support is planned). To use logind,
you need to activate the associated cargo feature:
cargo run --features logind -- --tty-udev