Find a file
Victoria Brekenfeld 8b6ae7e136 Use wayland-rs 0.30
2022-06-12 21:00:26 +00:00
.github/workflows move smallvil to new crate 2022-06-12 20:50:51 +00:00
anvil Use from() rather than into() 2022-06-12 21:00:26 +00:00
examples use multiple dispatch implementations for buffers 2022-06-12 20:56:20 +00:00
smallvil Use from() rather than into() 2022-06-12 21:00:26 +00:00
src 0.30: drop wl_shell 2022-06-12 21:00:26 +00:00
wlcs_anvil Initial 0.30 port of desktop 2022-06-12 20:37:41 +00:00
.gitignore Fix travis build with updated libinput 2017-12-15 19:22:40 +01:00
.rustfmt.toml Remove unstable rustfmt options 2018-04-17 17:48:20 +02:00
build.rs egl: Add render_node query to EGLDevice 2022-03-14 16:13:22 +01:00
Cargo.toml Use wayland-rs 0.30 2022-06-12 21:00:26 +00:00
CHANGELOG.md feat: add get_size method to EGLSurface (#577) 2022-05-13 11:57:27 +02:00
compile_wlcs.sh ci: Update wlcs 2022-02-07 18:51:50 +01:00
CONTRIBUTING.md Update IRC reference 2021-06-08 22:05:40 +02:00
doc_index.html travis: add a redirect doc homepage 2017-10-01 20:34:24 +02:00
LICENSE.txt Add MIT license 2017-03-24 10:24:07 +01:00
matrix_badge.svg Add a few badges on the README 2017-10-04 11:30:07 +02:00
README.md X11 backend 2021-10-17 13:46:15 -05:00

Smithay

Crates.io docs.rs Build Status Join the chat on matrix at @smithay:matrix.org Join the chat via bridge on gitter at smithay/Lobby

A smithy for rusty wayland compositors

Goals

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:

  • Documented: Smithay strives to maintain a clear and detailed documentation of its API and its functionalities. Compiled documentations are available on docs.rs for released versions, and here for the master branch.
  • Safety: Smithay will target to be safe to use, because Rust.
  • Modularity: Smithay is not a framework, and will not be constraining. If there is a part you don't want to use, you should not be forced to use it.
  • High-level: You should be able to not have to worry about gory low-level stuff (but Smithay won't stop you if you really want to dive into it).

Anvil

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:

  • --x11: start anvil as an X11 client. This allows you to run the compositor inside an X11 session or any compositor supporting XWayland. Should be preferred over the winit backend where possible.
  • --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.