gtk-rs-core
gtk-rs-core copied to clipboard
macros: Error out on unknown/invalid attributes
E.g. the following should fail
#[derive(Debug, Copy, Clone, PartialEq, Eq, glib::Enum)]
#[enum_type(name = "MyEnum", nullable)]
Only name
is valid in that context.
I just released a new crate deluxe
that should make this a lot easier. I'd like to port the macros over to that, if it looks good?
Sounds good to me, you want to send a PR?
Isn't this fixed? With the example above, nullable
is flagged with an error message. It seems that #1096 made it mandatory to have attribute validation.