gtk-rs/gir-files

How to generate a GIR file?

Closed this issue · 1 comments

I am not sure where I should open this issue, but I cannot see any documentation about how to create a new GIR file.

I would like to create a Rust binding of libgoa and I was told that using GIR is a good first step. But I only saw some documentation about using a GIR file, not generating it.

BTW, does the GIR format handle the asynchronous methods? In my binding, I wrap the asynchronous Rust methods in a fn foobar() -> impl Future<Output = FooBar>, but I wonder if GIR does that as well.

GIR files are usually generated when building the library, you might have to enable some build time option for it and it requires some dependencies installed on your machine.

And yes, we do support generating async functions.