# gtk-rs/gtk4-rs

Rust bindings of GTK 4

Repository: https://github.com/gtk-rs/gtk4-rs
Canonical: https://ross.abutalabs.com/products/gtk4-rs
Homepage: https://gtk-rs.org/gtk4-rs/
Language: Rust
License: MIT
License Family: permissive
Topics: gtk4, gtk4-rs, gsk4, gdk4, gdk4-wayland, gdk4-x11, gtk4-macros, gtk-rs
Last push: 2026-08-24T07:15:23+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 78, longevity 100
- inputs: {"age_days": 2669, "days_push": 9, "days_rel": 65, "gap_med": 35.5, "n_releases_24m": 15}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2335, forks 214 (observed 2026-08-28T04:06:37.999388+00:00)

## What it is
A set of Rust crates providing complete, idiomatic bindings for GTK 4 and its companion libraries (GDK, GSK, GLib, Gio, Cairo, Pango). It enables building native cross-platform desktop applications in Rust with the GNOME toolkit.

## Use cases
- build a native desktop app in Rust with GTK 4
- create a GNOME application using Rust
- write a cross-platform GUI in Rust
- use Wayland or X11 backend APIs from Rust
- build a Linux desktop utility like a timer or media player in Rust
- access GTK 4 widgets and rendering from Rust code

## When to choose
- you want idiomatic, safe Rust bindings to the full GTK 4 stack
- you are targeting Linux/GNOME desktops or cross-platform native UIs
- you need access to GDK backends (Wayland, X11, Win32, macOS) from Rust
- you prefer a mature, actively maintained binding set with docs, a book, and examples

## When to avoid
- you want an immediate-mode or web-based UI rather than a native widget toolkit
- you are building mobile or web applications
- you need GTK 3 bindings instead (use the gtk-rs GTK 3 crates)
- your project requires a pure-Rust GUI toolkit with no C dependency

## Facets
- artifact type: library
- maturity: active
- function: gui, ui-components, graphics, sdk
- domain: desktop-applications, cross-platform, developer-tools, graphics
- platform: rust, windows, cross-platform
- tags: gtk4, glib, gdk, gsk, gnome, wayland, x11, gobject, native-ui, bindings, linux, macos, desktop

## Member repositories
- gtk-rs/gtk4-rs (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:37.999388+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:37:36.538893+00:00, confidence not recorded.
  - readme: https://github.com/gtk-rs/gtk4-rs (fetched 2026-08-28T04:06:37.999388+00:00, sha 56b4b6f3e97a)
  - homepage: https://gtk-rs.org/gtk4-rs/ (fetched 2026-08-29T10:18:15.918715+00:00, sha 2a00a708aac4)
  - site_page: https://gtk-rs.org/gtk4-rs/git/docs (fetched 2026-08-29T10:18:15.922524+00:00, sha 4fe43429f773)
  - site_page: https://gtk-rs.org/gtk4-rs/stable/0.10/docs (fetched 2026-08-29T10:18:15.925354+00:00, sha 505241d7eff3)
  - site_page: https://gtk-rs.org/gtk4-rs/stable/0.9/docs (fetched 2026-08-29T10:18:15.926921+00:00, sha 5f5fe52e40bb)
  - site_page: https://gtk-rs.org/gtk4-rs/stable/0.8/docs (fetched 2026-08-29T10:18:15.928699+00:00, sha 1dda429d45df)
- Data as of 2026-08-30T08:39:29.467469+00:00.
