From f193f10ec017f7916631f280674bb82cdb979b83 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Wed, 21 Dec 2022 17:16:45 -0800 Subject: [PATCH] Add `wayland-dlopen` feature, like `winit` --- Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 7236e58..b120fb8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,8 +12,9 @@ categories = ["game-development", "graphics", "gui", "multimedia", "rendering"] exclude = ["examples"] [features] -default = ["x11", "wayland"] +default = ["x11", "wayland", "wayland-dlopen"] wayland = ["wayland-backend", "wayland-client", "nix"] +wayland-dlopen = ["wayland-sys/dlopen"] x11 = ["x11-dl"] [dependencies] @@ -24,6 +25,7 @@ raw-window-handle = "0.5.0" nix = { version = "0.26.1", optional = true } wayland-backend = { version = "0.1.0-beta.14", features = ["client_system"], optional = true } wayland-client = { version = "0.30.0-beta.14", optional = true } +wayland-sys = "0.30.0" x11-dl = { version = "2.19.1", optional = true } [target.'cfg(target_os = "windows")'.dependencies.windows-sys]