@@ -72,7 +72,7 @@ persistence = [
72
72
]
73
73
74
74
# # Enables wayland support and fixes clipboard issue.
75
- wayland = [" egui-winit/wayland" , " egui-wgpu?/wayland" , " egui_glow?/wayland" , " glutin?/wayland " , " glutin-winit?/wayland " ]
75
+ wayland = [" egui-winit/wayland" , " egui-wgpu?/wayland" , " egui_glow?/wayland" ]
76
76
77
77
# # Enable screen reader support (requires `ctx.options_mut(|o| o.screen_reader = true);`) on web.
78
78
# #
@@ -98,7 +98,7 @@ web_screen_reader = [
98
98
wgpu = [" dep:wgpu" , " dep:egui-wgpu" , " dep:pollster" ]
99
99
100
100
# # Enables compiling for x11.
101
- x11 = [" egui-winit/x11" , " egui-wgpu?/x11" , " egui_glow?/x11" , " glutin?/x11 " , " glutin?/glx " , " glutin-winit?/x11 " , " glutin-winit?/glx " ]
101
+ x11 = [" egui-winit/x11" , " egui-wgpu?/x11" , " egui_glow?/x11" ]
102
102
103
103
# # If set, eframe will look for the env-var `EFRAME_SCREENSHOT_TO` and write a screenshot to that location, and then quit.
104
104
# # This is used to generate images for examples.
@@ -142,8 +142,10 @@ egui-wgpu = { workspace = true, optional = true, features = [
142
142
] } # if wgpu is used, use it with winit
143
143
pollster = { workspace = true , optional = true } # needed for wgpu
144
144
145
- glutin = { workspace = true , optional = true , default-features = false , features = [" egl" , " wgl" ] }
146
- glutin-winit = { workspace = true , optional = true , default-features = false , features = [" egl" , " wgl" ] }
145
+ # we can expose these to user so that they can select which backends they want to enable to avoid compiling useless deps.
146
+ # this can be done at the same time we expose x11/wayland features of winit crate.
147
+ glutin = { workspace = true , optional = true }
148
+ glutin-winit = { workspace = true , optional = true }
147
149
home = { workspace = true , optional = true }
148
150
wgpu = { workspace = true , optional = true , features = [
149
151
# Let's enable some backends so that users can use `eframe` out-of-the-box
0 commit comments