bevy_image not available with bevy default-features=false #16563
Labels
A-Rendering
Drawing game state to the screen
C-Bug
An unexpected or incorrect behavior
D-Straightforward
Simple bug fixes and API improvements, docs, test and examples
P-Compile-Failure
A failure to compile Bevy apps
S-Ready-For-Implementation
This issue is ready for an implementation PR. Go for it!
Milestone
Bevy version
0.15.0
What you did
I am using Image and TextureFormatPixelInfo from bevy_image (respective bevy::image) and I want to only include only the relevant bevy parts by depending on bevy and setting deafult-features=false. rust-analyzer is suggesting the following import
bevy::image::Image
, but I get this error message when building:What went wrong
I am not sure. There is no bevy_image feature, but I would have expected bevy_sprite (which is a feature I enable) to pull in bevy_image (and obviously I can still functionally use Image, just not directly because I can not import it).
See KirmesBude/bevy_titan@4c64775 for my specific reproducible issue.
Workaround: Enable any image feature e.g. "png"
The text was updated successfully, but these errors were encountered: