Here’s an introduction to
Gtk-rs crates. For the users who already know Rust and Gtk, just skip this part.
- Rust and
Gtk-rs: This part explains how to add dependencies on the
Gtk-rscrates, depending on your needs.
- Gnome libraries and Rust: This part explains a bit how the bindings of the Gnome libraries work in Rust.
Full usage of
In this part we’ll go deeper into the mechanisms of the
Gtk-rs crates. If you’re not sure about your Rust or Gnome libraries knowledge, we recommend you to take a look at the previous tutorials first.
- Specifying version.
- Callbacks and closures.
- Upcast and downcast.
- Cross compiling from linux to windows.
- Cross compiling to different arches on linux.
Generating GNOME crate Rust API using
A tutorial is available here if you want to generate your own GNOME crate binding.