gir
gir copied to clipboard
Tool to generate rust bindings and user API for glib-based libraries
Needed for https://github.com/gtk-rs/gtk-rs-core/issues/731 Not tested on that issue yet, but the code seems correct.
While trying to generate bindings against glib 2.73+ in gtk-rs/gtk-rs-core#717 , `gir` tries to generate the following code which doesn't compile. ```rust #[cfg(any(feature = "v2_74", feature = "dox"))] #[cfg_attr(feature =...
Currently gir fails with when trying to generate Pango2 (1.90 currently) bindings ``` Error: Error: "GirXml: pango2/sys/../../Pango2-1.0.gir at line 1775:11: Attribute `scope` on element has invalid value: Unknown parameter scope...
Currently introspected enums do not easily convert to variants as they just expose their `u32` representation. For instance this would be useful when storing enums in `gsettings`
The improvements include: - Restructuring the book a little bit to make it easier to find information - Adding description on what gir is and when it can be used...
This PR is a follow up of https://github.com/gtk-rs/gir/pull/1134. Not sure what is the accepted way of contributing to someone else's PR. Changes include: * Rename the new `Basic::Vulkan` enum to...
All Vulkan handles, enumerations, bitfields and structs in [G-IR reflection](https://github.com/gtk-rs/gir-files/blob/master/Vulkan-1.0.gir) have one fundamental flaw: they are empty records. As such `gir` is unable to generate anything representative for them and...
The change requires the Gir files to be generated with gobject-introspection 1.70. With the current changes, the number of generated but unneeded docs for properties getters/setters cc @fengalin
When generating bindings for Aravis, there are things like: ```c #define ARV_PIXEL_FORMAT_CUSTOM_BAYER_BG_12_PACKED 0x810c0004 ``` This codegens into GIR: ```xml ``` And then into Rust: ```rust pub const ARV_PIXEL_FORMAT_CUSTOM_BAYER_BG_12_PACKED: c_int =...
Fixes #1076 Current status: Signals  Properties 