gir
gir copied to clipboard
Tool to generate rust bindings and user API for glib-based libraries
I get an error: > thread 'main' panicked at 'couldn't write to "./src/lib.rs": Custom { kind: Other, error: "No shared library found, but functions were found" }' @sdroege explained that...
They take `self` and we don't do that for `to_value()` for example, so for consistency also shouldn't do that for other methods.
Alternate solution to #1391. Tested with gtk4 it removes around 40,000 lines of code. I had to remove `builder_postprocess` too. For that I would like to somehow come up with...
`MessageDialog` is slated to be deprecated in GTK 4.10. In the Rust bindings, its functions are marked as `deprecated` (cfg'd behind `v4_10`), but the object struct is not.
GTK will probably not use this, but other libraries can enable it if they want Fixes #1355
gir generates `ptr::null_mut()` for `&mut type_` instead of `ptr::null()` for a function that returns a const ptr (`const gchar**` argument type): > error[E0308]: mismatched types > src/auto/metadata.rs:71:123 ```rust impl MetadataExt...
Currently gir, would generate `AsRef` for fundamental types as a replacement of `IsA` that is used for objects/interfaces. The problem with using `AsRef` is it causes problems when the param...
I am currently trying to get https://github.com/gtk-rs/gir/pull/1379 merged. [Bilal mentioned](https://github.com/gtk-rs/gir/pull/1379#discussion_r1010848068) that information about gir-rustdoc & CI templates could be added to the book. It is a good suggestion, but I'd...
Hi! I'm trying to make bindings for the Nemo gir, or libnemo-extension. After a lot of fiddling (and wondering why creating a Nemo Column causes a double free), I realized...