Skip to content

Commit

Permalink
Add wayland-dlopen feature switch
Browse files Browse the repository at this point in the history
This feature controls whether to load libwayland at runtime using dlopen
instead of linking with it.
  • Loading branch information
liferooter committed Jun 22, 2024
1 parent 7a0c23c commit 2470ea3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 }

0 comments on commit 2470ea3

Please sign in to comment.