Closed pentamassiv closed 1 year ago
We don't support renaming objects, but you could rename you trait, similar to https://github.com/gtk-rs/gtk4-rs/blob/master/gtk4/Gir.toml#L1617
Awesome, that worked. Thank you
Have you seen https://gitlab.gnome.org/World/Rust/libgoa-rs btw?
Yes, it is the reason why I want to generate the bindings. I want to open a PR to update them. They are very outdated
I am currently generating bindings for GOA. It worked fine for the -sys crate, but I have an issue with the wrapper. Goa has a Goa.Object. When the code is generated, I have a naming conflict with the ObjectExt trait. There is one for the Goa.Object and one from glib. You can see the repo with the generated file here.
I thought the easiest would be to rename Object to GoaObject or something like that but I don't know how to rename it. I looked at the options in the Gir book and tried with
but I get a
[ERROR libgir::config::error] "object Goa.Object": Unknown key: ["rename"]
when running gir. Also, if renaming is the way to go, are there any conventions on how to rename it?