Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macros: Error out on unknown/invalid attributes #943

Open
sdroege opened this issue Feb 1, 2023 · 3 comments · May be fixed by #970
Open

macros: Error out on unknown/invalid attributes #943

sdroege opened this issue Feb 1, 2023 · 3 comments · May be fixed by #970
Labels
Milestone

Comments

@sdroege
Copy link
Member

sdroege commented Feb 1, 2023

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.

@jf2048
Copy link
Member

jf2048 commented Feb 4, 2023

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?

@sdroege
Copy link
Member Author

sdroege commented Feb 5, 2023

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

@sdroege sdroege modified the milestones: 0.17.0, 0.18.0 Feb 8, 2023
@zecakeh
Copy link
Contributor

zecakeh commented Apr 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants