Yeah I was wondering if some things are more coupled together. The issue I'm having is building it on a system without Wayland installed is very hard (or possibly impossible).
Without Wayland and X11? I'm targeting both (one shared build though), using Wayland when available otherwise defaulting to X11, and seems to work out in most cases.
No just without Wayland. My system didn't have Wayland installed because it's old enough not to include it by default and my card doesn't support it. However, a short while ago I got it to build by installing libwayland. (I was afraid my system might break by installing it but that doesn't seem to be the case so far.)
Then I don't see why you'd need libwayland at all? Build only for X11 and it won't try to use Wayland? X11 is enabled by default (wayland is even behind a feature flag), and you can force it with WINIT_UNIX_BACKEND=x11 as well.
Unfortunately, Wayland is a default feature in bevy and the only way to not include is too disable default features and manually enable the features you need which requires a very deep understanding of the project (which so far I've not found anyone who fits that description)
Not sure it's that difficult, you remove default-features, take the current list of 75 default features, copy-paste it, remove `wayland` from there, done :)