Skip to content

Commit

Permalink
Fix unspecified wayland/x11 dep from clipboard feature
Browse files Browse the repository at this point in the history
  • Loading branch information
xangelix committed Dec 15, 2024
1 parent 9aae14c commit ea42bbd
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions crates/eframe/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,14 @@ puffin = [
]

## Enables wayland support and fixes clipboard issue.
wayland = ["egui-winit/wayland", "egui-wgpu?/wayland", "egui_glow?/wayland", "glutin?/wayland", "glutin-winit?/wayland"]
wayland = [
"egui-winit/wayland",
"egui-wgpu?/wayland",
"egui_glow?/wayland",
"glutin?/wayland",
"glutin-winit?/wayland",
"egui-winit/smithay-clipboard",
]

## Enable screen reader support (requires `ctx.options_mut(|o| o.screen_reader = true);`) on web.
##
Expand All @@ -111,7 +118,16 @@ web_screen_reader = [
wgpu = ["dep:wgpu", "dep:egui-wgpu", "dep:pollster"]

## Enables compiling for x11.
x11 = ["egui-winit/x11", "egui-wgpu?/x11", "egui_glow?/x11", "glutin?/x11", "glutin?/glx", "glutin-winit?/x11", "glutin-winit?/glx"]
x11 = [
"egui-winit/x11",
"egui-wgpu?/x11",
"egui_glow?/x11",
"glutin?/x11",
"glutin?/glx",
"glutin-winit?/x11",
"glutin-winit?/glx",
"egui-winit/arboard",
]

## If set, eframe will look for the env-var `EFRAME_SCREENSHOT_TO` and write a screenshot to that location, and then quit.
## This is used to generate images for examples.
Expand Down Expand Up @@ -142,7 +158,6 @@ serde = { workspace = true, optional = true }
# native:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
egui-winit = { workspace = true, default-features = false, features = [
"clipboard",
"links",
] }
image = { workspace = true, features = ["png"] } # Needed for app icon
Expand All @@ -167,6 +182,10 @@ wgpu = { workspace = true, optional = true, features = [

# mac:
[target.'cfg(any(target_os = "macos"))'.dependencies]
egui-winit = { workspace = true, default-features = false, features = [
"arboard",
"links",
] }
objc2 = "0.5.1"
objc2-foundation = { version = "0.2.0", features = [
"block2",
Expand All @@ -183,6 +202,10 @@ objc2-app-kit = { version = "0.2.0", features = [

# windows:
[target.'cfg(any(target_os = "windows"))'.dependencies]
egui-winit = { workspace = true, default-features = false, features = [
"arboard",
"links",
] }
winapi = { version = "0.3.9", features = ["winuser"] }
windows-sys = { workspace = true, features = [
"Win32_Foundation",
Expand Down

0 comments on commit ea42bbd

Please sign in to comment.