Need help with x11rb?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

144 Stars 7 Forks Other 1.5K Commits 42 Opened issues


X11 bindings for the rust programming language, similar to xcb being the X11 C bindings

Services available


Need anything else?

Contributors list

X11 rust bindings

GitHub Actions Status AppVeyor Build Status Crate API Minimum rustc version License

Feel free to open issues for any problems or questions you might have. A comparison with some other Rust X11 libraries is available in an extra document.


This crate uses a code generator that is implemented in Rust. A copy of the generated code is included, so you do not need to run the generator unless you have modified the definitions or the generator itself.

The code generator uses the X11 XML description from

. A copy of xcb-proto that comes with the source code is used.

The interaction with libxcb via

requires at least libxcb 1.12.

Does this support async/await

No. If you have so many X11 connections that this would matter, you are doing something wrong. Also, it encourages people to write high-latency code instead of sending multiple requests and only afterwards wait for the replies.

Crate features

Most X11 extensions are feature-gated. For example, to use the shared memory extansion, the

feature has to be enabled.


feature just enables all X11 extensions.

Additionally, the

feature enables
. This uses
internally and allows sharing the underlying
pointer with other code.


feature enables X11 cursor support via the
module. This module helps with loading cursors from the current cursor theme.

Current state

The full X11 protocol is supported by this library. All extensions that are available in

can be used and even FD passing with the server is supported.

The changelog is available in a separate file.


Licensed under either of

  • Apache License, Version 2.0 (LICENSE-APACHE or
  • MIT license (LICENSE-MIT or

at your option.

The subdirectory xcb-proto-1.14-1-g2b3559c contains a vendored copy of the package of the same name. It is covered by the MIT license. See xcb-proto-1.14-1-g2b3559c/COPYING for details.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.