Simplify windowing server features a bit

This commit is contained in:
Héctor Ramón Jiménez 2025-11-25 08:38:59 +01:00
parent 5c7bf112c8
commit b5de29ca1f
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 7 additions and 14 deletions

5
Cargo.lock generated
View file

@ -208,6 +208,8 @@ version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6cbdf310d77fd3aaee6ea2093db7011dc2d35d2eb3481e5607f1f8d942ed99df" checksum = "6cbdf310d77fd3aaee6ea2093db7011dc2d35d2eb3481e5607f1f8d942ed99df"
dependencies = [ dependencies = [
"async-fs",
"async-net",
"enumflags2", "enumflags2",
"futures-channel", "futures-channel",
"futures-util", "futures-util",
@ -215,7 +217,6 @@ dependencies = [
"raw-window-handle", "raw-window-handle",
"serde", "serde",
"serde_repr", "serde_repr",
"tokio",
"url", "url",
"wayland-backend", "wayland-backend",
"wayland-client", "wayland-client",
@ -5927,7 +5928,6 @@ dependencies = [
"signal-hook-registry", "signal-hook-registry",
"socket2 0.6.1", "socket2 0.6.1",
"tokio-macros", "tokio-macros",
"tracing",
"windows-sys 0.61.2", "windows-sys 0.61.2",
] ]
@ -7651,7 +7651,6 @@ dependencies = [
"ordered-stream", "ordered-stream",
"serde", "serde",
"serde_repr", "serde_repr",
"tokio",
"tracing", "tracing",
"uds_windows", "uds_windows",
"uuid", "uuid",

View file

@ -88,7 +88,7 @@ linux-theme-detection = ["iced_winit/linux-theme-detection"]
# Enables the Unix X11 backend # Enables the Unix X11 backend
x11 = ["iced_renderer/x11", "iced_winit/x11"] x11 = ["iced_renderer/x11", "iced_winit/x11"]
# Enables the Unix Wayland backend # Enables the Unix Wayland backend
wayland = ["iced_renderer/wayland", "iced_winit/wayland", "iced_winit/wayland-csd-adwaita", "iced_tester?/wayland"] wayland = ["iced_renderer/wayland", "iced_winit/wayland"]
[dependencies] [dependencies]
iced_debug.workspace = true iced_debug.workspace = true
@ -212,7 +212,7 @@ pulldown-cmark = "0.12"
qrcode = { version = "0.13", default-features = false } qrcode = { version = "0.13", default-features = false }
raw-window-handle = "0.6" raw-window-handle = "0.6"
resvg = "0.45" resvg = "0.45"
rfd = { version = "0.16", default-features = false } rfd = "0.16"
rustc-hash = "2.0" rustc-hash = "2.0"
semver = "1.0" semver = "1.0"
serde = "1.0" serde = "1.0"

View file

@ -13,4 +13,3 @@ tokio.workspace = true
tokio.features = ["fs"] tokio.features = ["fs"]
rfd.workspace = true rfd.workspace = true
rfd.features = ["xdg-portal", "wayland", "tokio"]

View file

@ -10,9 +10,6 @@ categories.workspace = true
keywords.workspace = true keywords.workspace = true
rust-version.workspace = true rust-version.workspace = true
[features]
wayland = ["rfd/wayland"]
[dependencies] [dependencies]
iced_test.workspace = true iced_test.workspace = true
iced_widget.workspace = true iced_widget.workspace = true

View file

@ -14,15 +14,13 @@ keywords.workspace = true
workspace = true workspace = true
[features] [features]
default = ["x11", "wayland", "wayland-dlopen", "wayland-csd-adwaita"] default = ["x11", "wayland"]
debug = ["iced_debug/enable"] debug = ["iced_debug/enable"]
sysinfo = ["dep:sysinfo"] sysinfo = ["dep:sysinfo"]
x11 = ["winit/x11", "window_clipboard/x11"]
wayland = ["winit/wayland", "window_clipboard/wayland"]
wayland-dlopen = ["winit/wayland-dlopen"]
wayland-csd-adwaita = ["winit/wayland-csd-adwaita"]
unconditional-rendering = [] unconditional-rendering = []
linux-theme-detection = ["dep:mundy", "mundy/async-io", "mundy/color-scheme"] linux-theme-detection = ["dep:mundy", "mundy/async-io", "mundy/color-scheme"]
x11 = ["winit/x11", "window_clipboard/x11"]
wayland = ["winit/wayland", "winit/wayland-dlopen", "winit/wayland-csd-adwaita", "window_clipboard/wayland"]
[dependencies] [dependencies]
iced_debug.workspace = true iced_debug.workspace = true