Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[discuss] automatically enable egui-winit clipboard feature #3948

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion crates/eframe/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ serde = { version = "1", optional = true, features = ["derive"] }
# native:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
egui-winit = { version = "0.25.0", path = "../egui-winit", default-features = false, features = [
"clipboard",
"links",
] }
image = { version = "0.24", default-features = false, features = [
Expand Down
11 changes: 5 additions & 6 deletions crates/egui-winit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ all-features = true


[features]
default = ["clipboard", "links", "wayland", "winit/default", "x11"]
default = ["links", "wayland", "winit/default", "x11"]

## Enable platform accessibility API implementations through [AccessKit](https://accesskit.dev/).
accesskit = ["accesskit_winit", "egui/accesskit"]
Expand All @@ -35,9 +35,8 @@ android-native-activity = ["winit/android-native-activity"]
## [`bytemuck`](https://docs.rs/bytemuck) enables you to cast [`egui::epaint::Vertex`], [`egui::Vec2`] etc to `&[u8]`.
bytemuck = ["egui/bytemuck"]

## Enable cut/copy/paste to OS clipboard.
## If disabled a clipboard will be simulated so you can still copy/paste within the egui app.
clipboard = ["arboard", "smithay-clipboard"]
## Deprecated, clipboard is automatically enabled when x11 or wayland is selected
clipboard = []

## Enable opening links in a browser when an egui hyperlink is clicked.
links = ["webbrowser"]
Expand All @@ -49,10 +48,10 @@ puffin = ["dep:puffin", "egui/puffin"]
serde = ["egui/serde", "dep:serde"]

## Enables Wayland support.
wayland = ["winit/wayland", "bytemuck"]
wayland = ["winit/wayland", "bytemuck", "smithay-clipboard"]

## Enables compiling for x11.
x11 = ["winit/x11", "bytemuck"]
x11 = ["winit/x11", "bytemuck", "arboard"]

[dependencies]
egui = { version = "0.25.0", path = "../egui", default-features = false, features = [
Expand Down
7 changes: 2 additions & 5 deletions crates/egui_glow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ all-features = true
[features]
default = []

## For the `winit` integration:
## enable cut/copy/paste to os clipboard.
##
## if disabled a clipboard will be simulated so you can still copy/paste within the egui app.
clipboard = ["egui-winit?/clipboard"]
## Deprecated, clipboard is automatically enabled with winit integration when x11 or wayland is selected
clipboard = []

## For the `winit` integration:
## enable opening links in a browser when an egui hyperlink is clicked.
Expand Down