fkaa / breadx

An implementation of the X Window System Protocol in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

breadx

Build Status crates.io Docs

An implementation of the X Window System Protocol in Rust. 100% safe and mutex-free. Currently a work in progress; however, it should be usable in its current state for most X11-related applications.

Reasons you should use this over Xlib/XCB Bindings

  • No Mutexes
  • Generally faster (awaiting verification)
  • Built-in support for Rust's async ecosystem via async_net
  • Crate proper is #[forbid(unsafe_code)], dependencies are either safe or verified.
  • Tries to provide the ease of use of Xlib while also providing XCB's ability to leverage the async capabilities of the X server
  • Can be used in #[no_std] environments.

Reasons not to use this over Xlib/XCB Bindings

  • Currently very immature
  • No support for extensions (yet)
  • Not ABI/API compatible with Xlib/XCB

Tutorials/Examples

For tutorials and examples of breadx's usage, check out the docs.

License

Dual licensed under the MIT and Apache 2.0 Licenses, just like Rust proper is.

About

An implementation of the X Window System Protocol in Rust

License:Apache License 2.0


Languages

Language:Rust 98.6%Language:Makefile 1.3%Language:SCSS 0.0%Language:CSS 0.0%Language:JavaScript 0.0%Language:Python 0.0%