-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Revert asset lifetime changes and preserve staticness of asset paths in AssetServer::load() #20562
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
Merged
alice-i-cecile
merged 6 commits into
bevyengine:main
from
alice-i-cecile:revert-asset-lifetime-changes
Aug 15, 2025
Merged
Revert asset lifetime changes and preserve staticness of asset paths in AssetServer::load() #20562
alice-i-cecile
merged 6 commits into
bevyengine:main
from
alice-i-cecile:revert-asset-lifetime-changes
Aug 15, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Allows creating `AssetSourceId` and `AssetPath` from non-static lifetimes using the `From/Into` implementations over `&str` and `Option<&str>`. Added `as_static` and `from_static` methods to allow a work-around specialization.
…mentations" This reverts commit 5068b6a.
alice-i-cecile
commented
Aug 13, 2025
alice-i-cecile
commented
Aug 13, 2025
atlv24
approved these changes
Aug 13, 2025
james7132
approved these changes
Aug 14, 2025
Member
Author
|
Hmm. Fixing that does not look fun. I'll tackle it tomorrow. |
Member
Author
andriyDev
approved these changes
Aug 15, 2025
Contributor
andriyDev
left a comment
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.
I think we should fix up the ignored test eventually but I don't think this PR needs to figure that out.
andriyDev
added a commit
to andriyDev/bevy
that referenced
this pull request
Oct 16, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-Assets
Load files from disk to use for things like images, models, and sounds
C-Bug
An unexpected or incorrect behavior
C-Performance
A change motivated by improving speed, memory usage or compile times
D-Modest
A "normal" level of difficulty; suitable for simple features or challenging fixes
P-Regression
Functionality that used to work but no longer does. Add a test for this!
S-Ready-For-Final-Review
This PR has been approved by the community. It's ready for a maintainer to consider merging it
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Objective
Solution
Into<AssetSourceId>andInto<AssetPath>Implementations over Lifetime #10823TODO
This PR was made > 10k issues ago, and git can do funky things. Opening as a draft to investigate the diff before proceeding.