From 2470ea38c72b9c4800fd7d8436033769e79c0882 Mon Sep 17 00:00:00 2001 From: Gleb Smirnov Date: Sat, 22 Jun 2024 11:57:53 +0300 Subject: [PATCH] Add wayland-dlopen feature switch This feature controls whether to load libwayland at runtime using dlopen instead of linking with it. --- Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e852acd..da747d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,9 +13,10 @@ edition = "2021" rust-version = "1.65.0" [features] -default = ["x11", "wayland"] +default = ["x11", "wayland", "wayland-dlopen"] x11 = ["x11-clipboard"] wayland = ["smithay-clipboard"] +wayland-dlopen = ["smithay-clipboard/dlopen"] [target.'cfg(windows)'.dependencies] clipboard-win = "3.0.2" @@ -31,4 +32,4 @@ objc2-app-kit = { version = "0.2.0", features = ["NSPasteboard"] } [target.'cfg(all(unix, not(any(target_os="macos", target_os="android", target_os="ios", target_os="emscripten"))))'.dependencies] x11-clipboard = { version = "0.9.1", optional = true } -smithay-clipboard = { version = "0.7.0", optional = true } +smithay-clipboard = { version = "0.7.0", default-features = false, optional = true }