38 releases

Uses new Rust 2024

new 0.11.0-alpha.3 Feb 5, 2026
0.10.3 Dec 2, 2025
0.10.1 Sep 17, 2025
0.10.0 Jul 15, 2025
0.2.0 Jul 12, 2021

#38 in #gnome-gui

Download history 23282/week @ 2025-10-16 20428/week @ 2025-10-23 19989/week @ 2025-10-30 19570/week @ 2025-11-06 20245/week @ 2025-11-13 20265/week @ 2025-11-20 20126/week @ 2025-11-27 20287/week @ 2025-12-04 17888/week @ 2025-12-11 19598/week @ 2025-12-18 17487/week @ 2025-12-25 20296/week @ 2026-01-01 18509/week @ 2026-01-08 22245/week @ 2026-01-15 24042/week @ 2026-01-22 24654/week @ 2026-01-29

92,782 downloads per month
Used in 194 crates (via gtk4)

MIT license

54KB
941 lines

gtk4-macros

Project site

Macro helpers for GTK 4 bindings, part of gtk4-rs.

Minimum supported Rust version

Currently, the minimum supported Rust version is 1.83.

Documentation

Available Macros

  • CompositeTemplate

Features

Feature Description
xml_validation Check the existence of #[template_child] fields in the UI file. Only works with #[template(string = "")]
blueprint Adds blueprint usage support in #[template(string = "")]

See Also

License

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

Dependencies

~2.2–3.5MB
~73K SLoC