Add x11 and wayland feature flags

This commit is contained in:
TechnoPorg 2025-10-13 15:28:53 -04:00 committed by Héctor Ramón Jiménez
parent 7edd3095db
commit 0a75f399a8
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
8 changed files with 39 additions and 62 deletions

View file

@ -22,7 +22,7 @@ all-features = true
maintenance = { status = "actively-developed" }
[features]
default = ["wgpu", "tiny-skia", "crisp", "web-colors", "thread-pool", "linux-theme-detection"]
default = ["wgpu", "tiny-skia", "crisp", "web-colors", "thread-pool", "linux-theme-detection", "x11", "wayland"]
# Enables the `wgpu` GPU-accelerated renderer with all its default features (Vulkan, Metal, DX12, OpenGL, and WebGPU)
wgpu = ["wgpu-bare", "iced_renderer/wgpu"]
# Enables the `wgpu` GPU-accelerated renderer with the minimum required features (no backends!)
@ -85,6 +85,10 @@ unconditional-rendering = ["iced_winit/unconditional-rendering"]
sipper = ["iced_runtime/sipper"]
# Enables Linux system theme detection
linux-theme-detection = ["iced_winit/linux-theme-detection"]
# Enables the Unix X11 backend
x11 = ["iced_renderer/x11", "iced_winit/x11"]
# Enables the Unix Wayland backend
wayland = ["iced_renderer/wayland", "iced_winit/wayland", "iced_winit/wayland-csd-adwaita", "iced_tester?/wayland"]
[dependencies]
iced_debug.workspace = true
@ -176,10 +180,10 @@ iced_runtime = { version = "0.14.0-dev", path = "runtime" }
iced_selector = { version = "0.14.0-dev", path = "selector" }
iced_test = { version = "0.14.0-dev", path = "test" }
iced_tester = { version = "0.14.0-dev", path = "tester" }
iced_tiny_skia = { version = "0.14.0-dev", path = "tiny_skia" }
iced_tiny_skia = { version = "0.14.0-dev", path = "tiny_skia", default-features = false }
iced_wgpu = { version = "0.14.0-dev", path = "wgpu", default-features = false }
iced_widget = { version = "0.14.0-dev", path = "widget" }
iced_winit = { version = "0.14.0-dev", path = "winit" }
iced_winit = { version = "0.14.0-dev", path = "winit", default-features = false }
bincode = "1.3"
bitflags = "2.0"
@ -208,7 +212,7 @@ pulldown-cmark = "0.12"
qrcode = { version = "0.13", default-features = false }
raw-window-handle = "0.6"
resvg = "0.45"
rfd = "0.15"
rfd = { version = "0.16", default-features = false }
rustc-hash = "2.0"
semver = "1.0"
serde = "1.0"
@ -216,7 +220,7 @@ sha2 = "0.10"
sipper = "0.1"
smol = "2"
smol_str = "0.2"
softbuffer = "0.4"
softbuffer = { version = "0.4", default-features = false }
syntect = "5.1"
sysinfo = "0.33"
thiserror = "2"
@ -230,7 +234,7 @@ wasmtimer = "0.4.1"
web-sys = "0.3.69"
web-time = "1.1"
wgpu = { version = "27.0", default-features = false, features = ["std", "wgsl"] }
window_clipboard = "0.4.1"
window_clipboard = "0.5"
winit = { git = "https://github.com/iced-rs/winit.git", rev = "05b8ff17a06562f0a10bb46e6eaacbe2a95cb5ed" }
[workspace.lints.rust]