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

Simplify derive_from_world #17534

Merged
merged 13 commits into from
Jan 26, 2025
Merged

Conversation

Bleachfuel
Copy link
Contributor

Objective

simplify existing implementation

crates/bevy_ecs/macros/src/lib.rs Outdated Show resolved Hide resolved
} else {
quote!(#field_initializers)
};
let members = fields.members();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never knew about this, that's awesome!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kind of still hate how annoying it is to parse attributes. Tried darling but is also annoying :(

@MrGVSV MrGVSV added D-Trivial Nice and easy! A great choice to get started with Bevy A-ECS Entities, components, systems, and events C-Code-Quality A section of code that is hard to understand or change S-Needs-Review Needs reviewer attention (from anyone!) to move forward D-Macros Code that generates Rust code labels Jan 25, 2025
Bleachfuel and others added 2 commits January 25, 2025 19:35
Co-authored-by: Gino Valente <49806985+MrGVSV@users.noreply.github.com>
@BenjaminBrienen BenjaminBrienen added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jan 25, 2025
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jan 26, 2025
Merged via the queue into bevyengine:main with commit eb04f8a Jan 26, 2025
33 checks passed
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-Code-Quality A section of code that is hard to understand or change D-Macros Code that generates Rust code D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants