enable conditional compilation for all backends

To reduce binary size one can now enable only specific backends, e.g.
wayland or x11 via cargo features

Additionally adds stubs for libei and xdg-desktop-portal backends
This commit is contained in:
Ferdinand Schober
2023-02-17 13:06:13 +01:00
parent 94a4b15cc3
commit 4c66b37a2f
22 changed files with 310 additions and 197 deletions

14
src/backend/consumer.rs Normal file
View File

@@ -0,0 +1,14 @@
#[cfg(windows)]
pub mod windows;
#[cfg(feature="x11")]
pub mod x11;
#[cfg(feature = "wayland")]
pub mod wlroots;
#[cfg(feature = "xdg_desktop_portal")]
pub mod xdg_desktop_portal;
#[cfg(feature = "libei")]
pub mod libei;