diff --git a/pkgs/id/crates/id-native-shell/Cargo.toml b/pkgs/id/crates/id-native-shell/Cargo.toml index 8226618910..2afc633876 100644 --- a/pkgs/id/crates/id-native-shell/Cargo.toml +++ b/pkgs/id/crates/id-native-shell/Cargo.toml @@ -26,8 +26,6 @@ bevy = { version = "0.19", default-features = false, features = [ "bevy_window", "bevy_winit", "default_font", - "x11", - "wayland", ] } id = { path = "../..", default-features = false, features = ["world"] } iroh = "1" @@ -35,6 +33,15 @@ serde_json = "1" tokio = { version = "1", features = ["full"] } [target.'cfg(target_os = "linux")'.dependencies] +# The X11/Wayland windowing backends are Linux-only: gate them to this +# target table (features are additive across target tables, so Linux +# resolves the same Bevy feature set as before) so the crate's +# dependency graph for other targets — macOS next (#12817) — carries +# no wayland-sys/x11 crates at all. +bevy = { version = "0.19", default-features = false, features = [ + "x11", + "wayland", +] } # Linux `openat2(2)` with RESOLVE_BENEATH for the file-read open (#11420). libc = "0.2"