-
-
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
[DRAFT] no_std
Option for bevy_tasks
#15362
Closed
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
Cannot rely on call-sites having `extern crate alloc;`. Perhaps `bevy_ecs` could re-export `Box` for this macro, but `std` is fine for now.
We wish to use different lints for the examples, and `cargo` currently doesn't support overriding workspace lints within a crate. As a workaround, all workspace lints are duplicated for the root crate to allow it to specifically allow the standard library.
Explains the requirement for duplicating the lints as a form of workspace overrides
Co-Authored-By: François Mockers <[email protected]>
Co-Authored-By: François Mockers <[email protected]>
Co-Authored-By: François Mockers <[email protected]>
However, `bevy_ptr` and `bevy_utils` must still link to `core` and `alloc` due to the possibility of being `no_std` based on feature gating.
alice-i-cecile
added
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
A-Tasks
Tools for parallel and async work
X-Controversial
There is active debate or serious implications around merging this PR
S-Waiting-on-Author
The author needs to make changes or address concerns before this can be merged
labels
Sep 22, 2024
bushrat011899
force-pushed
the
NoSTDBevyTasks
branch
4 times, most recently
from
September 23, 2024 10:00
47dcef8
to
2f345b3
Compare
bushrat011899
force-pushed
the
NoSTDBevyTasks
branch
from
September 25, 2024 22:47
da31142
to
5312ab9
Compare
bushrat011899
force-pushed
the
NoSTDBevyTasks
branch
2 times, most recently
from
September 25, 2024 23:02
ff778c1
to
032bbde
Compare
bushrat011899
force-pushed
the
NoSTDBevyTasks
branch
from
September 25, 2024 23:02
032bbde
to
6e20849
Compare
Closed in favour of #15464 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-Tasks
Tools for parallel and async work
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
S-Waiting-on-Author
The author needs to make changes or address concerns before this can be merged
X-Controversial
There is active debate or serious implications around merging this PR
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
bevy_tasks
inno_std
contextsSolution
async_executor
based on existing reference implementation but usingspin
sync primitives, allowingno_std
usage.TaskPool
using a single globalExecutor
Testing
Notes
bevy_ecs
needs work to permit a minimalno_std
Bevy application, asbevy_app
is triviallyno_std
once these two crates are.Sync
requirements required in ano_std
context. Also, I'm waiting for the lints in Addcore
andalloc
overstd
Lints #15281 to be merged, as this work is based off of some of those changes (hence the absurdly high change count)