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

cfg_condition doesn't affect flags #1081

Closed bilelmoussaoui closed 3 years ago

bilelmoussaoui commented 3 years ago

Doing so in gtk4-rs

[[object]]
name = "Gtk.PrintCapabilities"
status = "generate"
cfg_condition = "target_os = \"linux\""

Where PrintCapabilities is a flag, it doesn't generate any cfg attribute at all.

GuillaumeGomez commented 3 years ago

This isn't applied on enum either, that's weird.