-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Move Duration and Instant from bevy_utils to bevy_time, resulting in additional bevy_time_plugin crate #6034
Closed
Conversation
This file contains 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
…vents in bevy_input. Added PartialEq trait to bevy_input events without it.
…erde an optional dependency. Added conditional #derives for necessary types in bevy_window.
… structure fields.
…r and its structs.
…ed crate bevy_time_plugin to avoid circular dependency with bevy_app. Several crate that depended on bevy_utils::{Duration, Instant} now will use bevy_time::{Duration, Instant}. bevy_reflect depends on the instant crate for Duration and Instant. as does bevy_time. bevy_render added a dependency on bevy_time_plugin. examples now will use time::Duration rather than utils::Duration.
This PR is supposed to be only the commits after commit: 807fbcf above. |
Nilirad
added
C-Code-Quality
A section of code that is hard to understand or change
M-Needs-Migration-Guide
A breaking change to Bevy's public API that needs to be noted in a migration guide
A-Time
Involves time keeping and reporting
A-Utils
Utility functions and types
labels
Sep 20, 2022
needing an additional crate for time seems to be too big a side effect of that move 😞 |
Maybe, but just to note, it's only a single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-Time
Involves time keeping and reporting
A-Utils
Utility functions and types
C-Code-Quality
A section of code that is hard to understand or change
M-Needs-Migration-Guide
A breaking change to Bevy's public API that needs to be noted in a migration guide
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
Fixes #6027.
Solution
Changelog
Migration Guide
Clients of Instant and/or Duration will need to change from getting them from
bevy_utils
tobevy_time
or frombevy::utils
tobevy::time
.Clients of TimePlugin will need to change from getting it from
bevy_time
tobevy_time_plugin
.