-
-
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
Switch bevy_asset
to core::prelude
#17442
Switch bevy_asset
to core::prelude
#17442
Conversation
Makes use of `std` explicit, simplifying a possible `no_std` port.
use core::num::NonZero; | ||
use std::println; |
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.
Boo!
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.
Exactly, I wonder if Bevy should actually prohibit eprintln
and println
since we always have access to log
and/or tracing
...
Head branch was pushed to by a user without write access
|
Makes use of
std
explicit, simplifying a possibleno_std
port.Objective
no_std
Bevy #15460no_std
work onbevy_asset
Solution
#![no_std]
to switch tocore::prelude
instead ofstd::prelude
Testing
Notes
This is entirely a change around the names of imports and has no impact on functionality. This just reduces the quantity of changes involved in the (likely more controversial)
no_std
-ification ofbevy_asset
.