Skip to content

An implementation of the X Window System Protocol in Rust

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-Apache
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

Dushistov/breadx

 
 

Repository files navigation

breadx

Build Status crates.io Docs

An implementation of the X Window System Protocol in Rust. 100% safe and (generally) mutex-free.

MSRV is currently 1.44.0. Pull requests that make this MSRV lower are welcome.

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
  • Extensions are supported but their interfaces are not fully implemented
  • Not ABI/API compatible with Xlib/XCB

If you're looking for a more complete, full-Rust X11 implementation with support for all documented extensions, consider x11rb. This project sets out to accomplish very much the same goal as breadx, although with different ideas of how to accomplish those goals.

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

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-Apache
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 99.7%
  • Other 0.3%