dtcristo / bevy_pixels

Bevy plugin that uses Pixels (a tiny pixel buffer) for rendering
https://docs.rs/bevy_pixels
Apache License 2.0
84 stars 12 forks source link

feat: re-export feature flags from `bevy_winit` #5

Closed SolarLiner closed 2 years ago

SolarLiner commented 2 years ago

Bevy re-exports display server options from winit on Linux, this does the same to allow Linux end-users to activate the correct themselves.

dtcristo commented 2 years ago

In 0.3 I've fixed up the dependency on bevy. We previously depended on internal bevy crates due to a version compatibility issue with pixels.

Would you be able to specify the appropriate display server in your own project on the bevy dependency? Like this:

[dependencies]
bevy = { version = "0.6", default_features = false, features = ["x11"] }
bevy_pixels = "0.3"

I currently don't re-export bevy from within this crate so if using this plugin, you'd need to depend on bevy in your own project to use the core Bevy APIs. I might change this in the future, if I do I will re-export features like this:

[features]
default = ["x11"]
wayland = ["bevy/wayland"]
x11 = ["bevy/x11"]
dtcristo commented 2 years ago

I've implemented this in 0.4.0.