Skip to content

feat(id-native-shell): target-gate the Bevy x11/wayland features to Linux (#12817 slice 1) - #13147

Merged
dezren39 merged 1 commit into
mainfrom
lane-pj-12817
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-pj-12817

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Slice 1 of #12817, per Lane LS's breakdown recorded on that issue: target-gate id-native-shell's Bevy window features.

Change (one file, pkgs/id/crates/id-native-shell/Cargo.toml, +9/−2): the x11/wayland features move out of the base bevy dependency into the existing [target.'cfg(target_os = "linux")'.dependencies] table as a second bevy entry carrying exactly those two features. Features are additive across target tables, so Linux resolves the same Bevy feature set as before; other targets no longer resolve them at all. Cargo.lock is untouched (the cross-target dependency union is unchanged).

Resolution evidence (cargo tree -p id-native-shell -f "{p} feats:{f}" under nix develop in pkgs/id):

  • Before, darwin: bevy feats included wayland,x11; bevy_winit feats wayland,x11.
  • After, darwin (--target aarch64-apple-darwin): bevy feats have no wayland/x11; bevy_winit feats empty. The darwin crate graph contains zero wayland-stack crates (smithay/calloop/xkbcommon/wayland/x11/drm/gbm/libinput) — as it already did before, since winit cfg-gates those crates itself; what this slice removes is the feature activation for non-Linux targets.
  • After, Linux (host): bevy/bevy_winit feats still carry wayland,x11 — byte-identical resolution to before.

Test verification: the Linux suite result is recorded in a comment on this PR once the dispatched run returns (acceptance: 73/73, matching the #10928 verification at PR #12884).

This PR does not close #12817: slice 2 (macOS venue decision) and slice 3 (the macOS shell) remain, per the breakdown on the issue.


Proof this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…inux

The base Bevy dependency enabled the x11 and wayland features
unconditionally, so they resolved active for every target — including
the macOS target #12817 adds next. Move both features into the
existing cfg(target_os = "linux") dependency table (features are
additive across target tables, so the Linux resolution is unchanged:
bevy and bevy_winit still resolve with wayland,x11 and the Linux
system-library wiring in nix-common.nix still applies). For
aarch64-apple-darwin, bevy/bevy_winit now resolve with no
wayland/x11 features at all.

Refs #12817 (slice 1 of Lane LS's breakdown on that issue).
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 56 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bbb56482-5b91-436d-ad39-a612ee9e3a42
Commits

Reviewing files that changed from the base of the PR and between 1d2cfed and 756bdc3.

Files selected for processing: 1

  • pkgs/id/crates/id-native-shell/Cargo.toml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T09:17:24.295246Z 756bdc3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39

Copy link
Copy Markdown
Member Author

Verification record — Lane PJ (archer), 2026-11-23.

Linux suite: 73 passed / 0 failed — cargo test -p id-native-shell under nix develop in pkgs/id at this PR's head 756bdc356c27, run on the laptop (per-suite: lib 49, capability_statement 4, form_widgets 6, live_session 1, parity 3, provider_file_read_e2e 6, transcript 4). Exactly the #10928 acceptance numbers from PR #12884 — the Linux resolution is unchanged, as designed.

Route note (why the laptop, not a dispatch): dispatch was tried first, four times — runs 45145807796, 45146728602, 45147861730, 45150189636. All four were stopped by fleet-command container environment defects (nix experimental features off in the command context; build-users-group = nixbld naming a group the image lacks; un-sandboxed builds tripping on /homeless-shelter, which an early builder recreates so a caller-side rm -rf does not hold). None reached the test suite. Filed as #13168 with the full evidence chain. The laptop run above is the same route Lane LS used to verify PR #12884.

@dezren39
dezren39 merged commit 5994519 into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-pj-12817 branch November 23, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

id(phase-14): shells v2 slice 1 — second native target on the shared frame layer (#6297)

1 participant