#wayland-protocol #bindings #protocols #extension #client-server #wayland-client #libwayland

sys wayland-sys

FFI bindings to the various libwayland-*.so libraries. You should only need this crate if you are working on custom wayland protocol extensions. Look at the crate wayland-client for usable bindings.

140 releases

0.31.1 Jul 13, 2023
0.30.1 Dec 6, 2022
0.30.0 Nov 15, 2022
0.30.0-beta.8 Jul 15, 2022
0.2.0 Nov 9, 2015

#64 in Network programming

Download history 95671/week @ 2023-12-04 96578/week @ 2023-12-11 104837/week @ 2023-12-18 59962/week @ 2023-12-25 79978/week @ 2024-01-01 94459/week @ 2024-01-08 101468/week @ 2024-01-15 111563/week @ 2024-01-22 98762/week @ 2024-01-29 109652/week @ 2024-02-05 104908/week @ 2024-02-12 97352/week @ 2024-02-19 114499/week @ 2024-02-26 108912/week @ 2024-03-04 109179/week @ 2024-03-11 112934/week @ 2024-03-18

456,513 downloads per month
Used in 963 crates (20 directly)

MIT license

34KB
577 lines

crates.io docs.rs Continuous Integration codecov

wayland-sys

This crate provides raw bindings to the system libwayland-*.so libraries. If you are looking for a Rust API over the Wayland protocol, see the wayland-client or wayland-server crates instead.

Bindings to the different libraries are enabled by the different cargo features:

  • client for bindings to libwayland-client.so
  • server for bindings to libwayland-server.so
  • cursor for bindings to libwayland-cursor.so
  • egl for bindings to libwayland-egl.so

Furthermore, the dlopen cargo feature will switch the library to a mode where, instead of directly linking to these system libraries, it'll instead try to open them at runtime. This allows to create binaries that can gracefully handle being run on non-Wayland environments. In that case the crate should be used with its provided ffi_dispatch!() macro, to support both modes seamlessly.

Dependencies

~0.2–6MB