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

feat: Custom TypePath impl for component/resource #8

Merged
merged 3 commits into from
Aug 16, 2023
Merged

Conversation

Bluefinger
Copy link
Owner

@Bluefinger Bluefinger commented Jul 17, 2023

Due to TypePath requirements for reflection, EntropyComponent/GlobalEntropy must have custom TypePath implementations in order to still be able to wrap around RngCore structs without requiring upstream RNGs/rand crates to pull in bevy and implement TypePath themselves. This PR allows for the shim to continue to exist without forcing this requirement to upstream RNGs, nor forcing the crate to not impose TypePath trait constraints onto the generics, forcing all users to need to newtype their RNGs just to provide the TypePath trait.

TODO

@Bluefinger Bluefinger added the enhancement New feature or request label Jul 17, 2023
@Bluefinger Bluefinger marked this pull request as ready for review August 16, 2023 08:24
@Bluefinger Bluefinger merged commit 3316c40 into main Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant