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

Re-export smallvec crate from bevy_utils #11006

Merged
merged 7 commits into from
Dec 24, 2023
Merged

Conversation

DavJCosby
Copy link
Contributor

Matches versioning & features from other Cargo.toml files in the project.

Objective

Resolves #10932

Solution

Added smallvec to the bevy_utils cargo.toml and added a line to re-export the crate. Target version and features set to match what's used in the other bevy crates.

Matches versioning & features from other Cargo.toml files in the project.
Copy link
Contributor

Welcome, new contributor!

Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨

@DavJCosby DavJCosby marked this pull request as draft December 17, 2023 08:37
@alice-i-cecile
Copy link
Member

For the crates that rely on bevy_utils already, we should use this re-export instead.

@alice-i-cecile alice-i-cecile added C-Code-Quality A section of code that is hard to understand or change A-Utils Utility functions and types labels Dec 17, 2023
@DavJCosby DavJCosby marked this pull request as ready for review December 17, 2023 23:31
@DavJCosby
Copy link
Contributor Author

Got a little tripped up with bevy_reflect's smallvec compiler feature, but I think I've got it now.

All bevy sub-crates that used smallvec were also using bevy_utils, so I was able to get them all moved over. If we'd like to upgrade from 1.6 to 1.11, this should make it easier.

@alice-i-cecile
Copy link
Member

Yep, feel free to upgrade in this PR.

@DavJCosby
Copy link
Contributor Author

This should be ready for review btw

@mockersf
Copy link
Member

smallvec 1.11 was already used, as it's semver compatible with 1.6. Putting it explicitly means it won't compile anymore for someone that for whatever reason can't update to the 1.11. This case probably doesn't matter, but it was the reason why it was still on 1.6

@james7132 james7132 added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Dec 24, 2023
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Dec 24, 2023
Merged via the queue into bevyengine:main with commit 42b7378 Dec 24, 2023
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Utils Utility functions and types C-Code-Quality A section of code that is hard to understand or change 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.

Re-export smallvec crate from bevy_utils
4 participants