From b57645384a2ab3ef2ea56629fae44073060db646 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Sun, 24 Dec 2023 21:59:00 +1300 Subject: Add a feature flag to enable each supported display server This commit forwards the winit display server feature flags as phosphor feature flags, so that downstream software can choose which display servers to enable or disable support for. Disabling support for a display server has the effect of reducing compile times and binary size. --- Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 5b93570..8ab51f9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,4 +10,9 @@ buffer = { path = "/home/ben/Libraries/buffer" } geometry = { path = "/home/ben/Libraries/geometry" } softbuffer = "0.3.1" -winit = { version = "0.28.1" } +winit = { version = "0.28.1", default-features=false } + +[features] +default = ["x11", "wayland"] +x11 = ["winit/x11"] +wayland = ["winit/wayland"] -- cgit v1.2.3-70-g09d2