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

Conversation

jrudolph
Copy link

@jrudolph jrudolph commented Feb 2, 2024

In the same effort that led to #3946, I noticed that enabling clipboard leads to lots of wayland dependencies being pulled in even when I just want to build for x11.

I guess, the current design is caused by the fact that it is not possible (I think) to have features declarations in cargo to say "only add this dependency if both of these features are enabled" (e.g. x11 and clipboard in this case).

This chooses a different tradeoff where clipboard gets automatically enabled when choosing x11 or wayland but only for the window system chosen.

Let me know if I'm completely on the wrong track here or something else would be breaking.

(This probably needs a warning about the deprecation?)

This chooses a different tradeoff where it is more easily possible to get rid
of x11 or wayland dependencies when they are not needed. Otherwise, when you
want `clipboard` and `x11` you will still pull in lots of wayland dependencies
for wayland clipboard support that will not be used anyway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant