gtk-rs-core icon indicating copy to clipboard operation
gtk-rs-core copied to clipboard

macros: Error out on unknown/invalid attributes

Open sdroege opened this issue 2 years ago • 3 comments

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.

sdroege avatar Feb 01 '23 07:02 sdroege

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?

jf2048 avatar Feb 04 '23 18:02 jf2048

Sounds good to me, you want to send a PR?

sdroege avatar Feb 05 '23 08:02 sdroege

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.

zecakeh avatar Apr 12 '24 09:04 zecakeh