Add no_std support to bevy_color#16633
Conversation
TimJentzsch
left a comment
There was a problem hiding this comment.
I have to say, I'm a bit surprised that stuff like rounding numbers is not available in core and has to be imported from bevy_math.
But the changes look fine to me :)
Yeah they were in |
# Objective - Contributes to bevyengine#15460 ## Solution - Added the following new features: - `std` (default) - `alloc` - `encase` (default) - `libm` ## Testing - Added to `compile-check-no-std` CI command ## Notes - `ColorCurve` requires `alloc` due to how the underlying `EvenCore` type works. - `Srgba::to_hex` requires `alloc` to return a `String`. - This was otherwise a _very_ simple change
Objective
no_stdBevy #15460Solution
std(default)allocencase(default)libmTesting
compile-check-no-stdCI commandNotes
ColorCurverequiresallocdue to how the underlyingEvenCoretype works.Srgba::to_hexrequiresallocto return aString.