33 releases

Uses new Rust 2024

new 0.11.0 Feb 20, 2026
0.11.0-alpha.2 Jan 11, 2026
0.10.3 Dec 2, 2025
0.10.1 Sep 17, 2025
0.2.0 Jul 12, 2021

#1084 in GUI

Download history 797/week @ 2025-10-31 875/week @ 2025-11-07 1075/week @ 2025-11-14 1351/week @ 2025-11-21 1138/week @ 2025-11-28 1142/week @ 2025-12-05 1042/week @ 2025-12-12 1177/week @ 2025-12-19 1176/week @ 2025-12-26 1304/week @ 2026-01-02 1671/week @ 2026-01-09 1724/week @ 2026-01-16 2052/week @ 2026-01-23 1612/week @ 2026-01-30 1241/week @ 2026-02-06 1523/week @ 2026-02-13

6,596 downloads per month
Used in 11 crates (9 directly)

MIT license

1MB
21K SLoC

Rust GDK 4 X11 bindings

The project website is here.

Rust bindings of GDK 4's X11 backend, part of gtk4-rs.

GDK is an intermediate layer that isolates GTK from the details of the windowing system. GDK X11 contains functions specific to the X11 backend.

Minimum supported Rust version

Currently, the minimum supported Rust version is 1.83.

Documentation

Using

We recommend using crates from crates.io, as demonstrated here.

If you want to track the bleeding edge, use the git dependency instead:

[dependencies]
gdk-wayland = { git = "https://github.com/gtk-rs/gtk4-rs.git", package = "gdk4-wayland" }

Avoid mixing versioned and git crates like this:

# This will not compile
[dependencies]
gdk-x11 = {version = "0.1", package = "gdk4-x11"}
gdk-wayland = { git = "https://github.com/gtk-rs/gtk4-rs.git", package = "gdk4-wayland" }

Features

Feature Description
v4_18 Enable the new APIs part of GTK 4.18
v4_16 Enable the new APIs part of GTK 4.16
v4_10 Enable the new APIs part of GTK 4.10
v4_4 Enable the new APIs part of GTK 4.4
egl Integration with the khronos-egl crate
xlib Integration with the x11 crate

See Also

License

The Rust bindings of gdk4-x11 are available under the MIT License, please refer to it.

Dependencies

~7–11MB
~237K SLoC