-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
update syn, encase, glam and hexasphere #8573
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I think it could benefit from a couple cleanups.
crates/bevy_reflect/bevy_reflect_derive/src/field_attributes.rs
Outdated
Show resolved
Hide resolved
crates/bevy_reflect/bevy_reflect_derive/src/container_attributes.rs
Outdated
Show resolved
Hide resolved
crates/bevy_reflect/bevy_reflect_derive/src/container_attributes.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks right, except for a couple of minor things.
crates/bevy_reflect/bevy_reflect_derive/src/container_attributes.rs
Outdated
Show resolved
Hide resolved
crates/bevy_reflect/bevy_reflect_derive/src/field_attributes.rs
Outdated
Show resolved
Hide resolved
Just pushed
If you notice anything out of the ordinary with these changes (disproportionately long compiletimes that I somehow missed on my local machine, etc.), let me know and I can revert them -- give me a ping on Discord for the fastest reply. |
Co-authored-by: Nicola Papale <nicopap@users.noreply.github.com>
Co-authored-by: JoJoJet <21144246+JoJoJet@users.noreply.github.com>
let metas = meta_list | ||
.parse_args_with(Punctuated::<Meta, Token![,]>::parse_terminated)? | ||
.into_iter() | ||
.collect(); | ||
let new_traits = ReflectTraits::from_metas(metas)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Not blocking, but couldn't we also just have ReflectTraits::from_metas
take a Punctuated::<Meta, Token![,]>
? Seems like the three places that use it collect it into a Vec
like this.
@@ -1636,6 +1636,24 @@ bevy_reflect::tests::should_reflect_debug::Test { | |||
assert_eq!("Foo".to_string(), format!("{foo:?}")); | |||
} | |||
|
|||
#[test] | |||
fn custom_debug_function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet, thanks for adding this!
It looks like your PR is a breaking change, but you didn't provide a migration guide. Could you add some context on what users should update when this change get released in a new version of Bevy? |
Objective
syn@1
tosyn@2
#8282syn
to 2.0,encase
to 0.6,glam
to 0.24 andhexasphere
to 9.0Blocked
on teoxoy/encase#42andon OptimisticPeach/hexasphere#17