24 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

#79 in GUI

Download history 7326/week @ 2023-12-23 7764/week @ 2023-12-30 8142/week @ 2024-01-06 7504/week @ 2024-01-13 8728/week @ 2024-01-20 7369/week @ 2024-01-27 8097/week @ 2024-02-03 11324/week @ 2024-02-10 11886/week @ 2024-02-17 10272/week @ 2024-02-24 12960/week @ 2024-03-02 11052/week @ 2024-03-09 13769/week @ 2024-03-16 13671/week @ 2024-03-23 11914/week @ 2024-03-30 8610/week @ 2024-04-06

49,303 downloads per month
Used in 102 crates (via gtk4)

MIT license

1MB
26K SLoC

Rust GSK 4 bindings

The project website is here.

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

GSK is an intermediate layer that isolates GTK from the details of the OpenGL or Vulkan implementation.

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

Avoid mixing versioned and git crates like this:

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

Features

Feature Description
vulkan Enable vulkan Renderer. Only if GTK is compiled with Vulkan support
broadway Enable broadway Renderer. Only if GTK is compiled with Broadway support
v4_14 Enable the new APIs part of GTK 4.14
v4_10 Enable the new APIs part of GTK 4.10
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

See Also

License

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

Dependencies

~8–19MB
~266K SLoC