25 releases

0.8.1 Mar 7, 2024
0.7.3 Sep 23, 2023
0.7.0 Jul 23, 2023
0.6.3 Mar 17, 2023
0.0.0 Jul 25, 2019

#13 in GUI

Download history 7466/week @ 2023-12-23 7882/week @ 2023-12-30 8168/week @ 2024-01-06 7592/week @ 2024-01-13 8886/week @ 2024-01-20 7493/week @ 2024-01-27 8213/week @ 2024-02-03 11422/week @ 2024-02-10 12148/week @ 2024-02-17 10372/week @ 2024-02-24 13042/week @ 2024-03-02 11114/week @ 2024-03-09 13839/week @ 2024-03-16 13684/week @ 2024-03-23 12050/week @ 2024-03-30 8698/week @ 2024-04-06

49,615 downloads per month
Used in 113 crates (32 directly)

MIT license

1MB
23K SLoC

Rust GDK 4 bindings

The project website is here.

Rust bindings of GDK 4, part of gtk4-rs.

Minimum supported Rust version

Currently, the minimum supported Rust version is 1.70.

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 = { git = "https://github.com/gtk-rs/gtk4-rs.git", package = "gdk4" }

Avoid mixing versioned and git crates like this:

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

Features

Feature Description
v4_14 Enable the new APIs part of GTK 4.14
v4_12 Enable the new APIs part of GTK 4.12
v4_10 Enable the new APIs part of GTK 4.10
v4_8 Enable the new APIs part of GTK 4.8
v4_6 Enable the new APIs part of GTK 4.6
v4_4 Enable the new APIs part of GTK 4.4
v4_2 Enable the new APIs part of GTK 4.2
gl Integration with the gl crate

See Also

License

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

Dependencies

~8–18MB
~253K SLoC