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

Port hecs derive macro improvements #761

Merged
merged 2 commits into from
Nov 6, 2020
Merged

Conversation

Veykril
Copy link
Contributor

@Veykril Veykril commented Nov 1, 2020

Ralith/hecs#104 and Ralith/hecs#105 improved the derive macro to properly support generics, tuple and unit structs as well improving panic messages when trying to create an archetype with duplicate components in debug mode. The macro is also now properly hygienic. This PR ports those changes over to bevy.

I didn't add the trybuild test suite as I don't know whether new dev-dependencies, are easily welcome or not. Let me know and I'll add that as well.

@Moxinilian Moxinilian added A-ECS Entities, components, systems, and events C-Feature A new feature, making something new possible labels Nov 1, 2020
@cart
Copy link
Member

cart commented Nov 6, 2020

Ooh very nice. Testing now

@razaamir
Copy link

razaamir commented Nov 6, 2020 via email

@cart cart merged commit fb7c651 into bevyengine:master Nov 6, 2020
@Veykril Veykril deleted the derive branch April 14, 2021 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ECS Entities, components, systems, and events C-Feature A new feature, making something new possible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants