#wayland #shm #client #memory-allocator

yanked wayrs-shm-alloc

A helper crate for wayrs-client for shared memory allocation

0.4.0-beta.0 Feb 11, 2023
0.3.0 Jan 23, 2023
0.2.0 Jan 1, 2023
0.1.0 Dec 26, 2022

#9 in #shm


Used in wayrs-cursor

MIT license

74KB
1.5K SLoC

wayrs

A simple Rust implementation of Wayland client library.

Design decisions

  • Single event queue
  • No interior mutability
  • No libwayland compatibility
  • Support blocking, non-blocking and async IO

Project structure

The project is split into multiple crates:

  • wayrs-client: The main crate with implements Wayland wire protocol. Provides Connection type which represents open Wayland socket.
  • wayrs-scanner: Provides generate! macro that generates glue code from .xml files. Generated code for the core protocol is already included in wayrs-client. Reexported as wayrs_client::scanner.
  • wayrs-shm-alloc: A simple "free list" shared memory allocator.
  • wayrs-protocols: A collection of Wayland protocols to use with wayrs-client.

lib.rs:

A simple "free list" shared memory allocator

Dependencies

~5MB
~101K SLoC