-
-
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
Re-export futures_lite
in bevy_tasks
#10670
Conversation
Some other things I want to bring up:
bevy/crates/bevy_tasks/src/lib.rs Lines 30 to 33 in 7ff61a8
|
Leave it as is IMO. |
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.
LGTM. But I would re-export as futures_lite
.
Head branch was pushed to by a user without write access
# Objective - Fixes bevyengine#10664 ## Solution - `pub use futures_lite as future` :) --- ## Changelog - Made `futures_lite` available as `future` in the `bevy_tasks` module. ## Migration Guide - Remove `futures_lite` from `Cargo.toml`. ```diff [dependencies] bevy = "0.12.0" - futures-lite = "1.4.0" ``` - Replace `futures_lite` imports with `bevy::tasks::future`. ```diff - use futures_lite::poll_once; + use bevy::tasks::future::poll_once; ```
Objective
poll_once
from Bevy #10664Solution
pub use futures_lite as future
:)Changelog
futures_lite
available asfuture
in thebevy_tasks
module.Migration Guide
futures_lite
fromCargo.toml
.[dependencies] bevy = "0.12.0" - futures-lite = "1.4.0"
futures_lite
imports withbevy::tasks::future
.