gtk-rs / gir

Tool to generate rust bindings and user API for glib-based libraries
https://gtk-rs.org/gir/book/
MIT License
237 stars 107 forks source link

[NOT GENERATED FUNCTION] vanishing #959

Open grelltrier opened 4 years ago

grelltrier commented 4 years ago

I am trying to generate Rust bindings for gtk-layer-shell. There are a number of global functions and they take a few different gtk types as input. There are only two enums that also need to be implemented but they only serve as input to the functions without having any methods themselves.

If I don't add those enums to generate = [ ] in the Gir.toml and then run gir -m not_bound I get [NOT GENERATED] for all the enums missing and also a number of [NOT GENERATED FUNCTION]. If I add all the enums to generate = [ ] and then run gir -m not_bound I don't get any [NOT GENERATED FUNCTION]s anymore, even though none of the before mentioned functions were generated. Is this expected behavior? Intuitively I would have expected all [NOT GENERATED FUNCTION] to remain until they were actually generated

sdroege commented 4 years ago

That seems unexpected indeed. I think currently it only lists types that are not generated at all because they're not configured, but it doesn't list functions that can't be generated (for whatever reason) although they're configured.

Seems like a useful addition.