From 305e5d8a93c2ffc84e9ac97e97127e1e4454b1af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?moon=20dav=C3=A9?= Date: Mon, 28 Sep 2026 21:31:45 -0400 Subject: [PATCH] make x11 a linux only dependency --- crates/processing_glfw/Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/processing_glfw/Cargo.toml b/crates/processing_glfw/Cargo.toml index 01ebacb6..de7c8019 100644 --- a/crates/processing_glfw/Cargo.toml +++ b/crates/processing_glfw/Cargo.toml @@ -12,9 +12,11 @@ x11 = ["dep:x11"] static-link = ["glfw/static-link"] [dependencies] -x11 = { version = "2", features = ["xlib"], optional = true } bevy = { workspace = true } glfw = "0.60.0" processing_core = { workspace = true } processing_input = { workspace = true } processing_render = { workspace = true } + +[target.'cfg(target_os = "linux")'.dependencies] +x11 = { version = "2", features = ["xlib"], optional = true }