Commit fc2e12e
Add bevy 0.18 game engine with fixups for all sub-crates
Summary:
Imports the bevy 0.18.1 game engine and wgpu-types 27 into third-party/rust.
This is a standalone import — D98494278 (bevy 0.14) remains in Phabricator for historical reference but is not a dependency of this diff.
**New top-level crates added to Cargo.toml:**
- `bevy = "0.18"` (game engine framework)
- `wgpu-types = { version = "27", features = ["serde"] }` (GPU API types)
**Vendored sub-crates (56 bevy + ~30 transitive deps):**
- 56 bevy sub-crates: bevy_ecs, bevy_render, bevy_pbr, bevy_gltf, bevy_animation, bevy_text, bevy_ui, bevy_scene, bevy_camera, bevy_image, bevy_mesh, bevy_shader, bevy_platform, and 43 others
- Key new transitive deps: cosmic-text (text shaping), skrifa/swash/read-fonts (font rendering), naga_oil (shader composition), rodio/cpal/alsa (audio), taffy (UI layout), self_cell, atomicow, variadics_please
- Upgraded shared deps: accesskit 0.14->0.21, wgpu-types 0.20->27, sysinfo 0.30->0.37
**Fixups (77 fixup configs across 5 categories):**
- `cargo_env` + `extra_srcs` for 50+ bevy sub-crates (embedded assets, shader files, Cargo.toml metadata)
- `omit_features` on bevy/bevy_internal: removes `bevy_winit` and windowing features (x11, wayland, custom_cursor, android-game-activity) -- bevy_winit pulls in conflicting android-activity features
- `omit_features` on android-activity: removes `game-activity` to resolve mutual exclusion with `native-activity` used by existing arvr targets (haptic_sdk, eye_tracking)
- `omit_features` on bevy_reflect: removes `web` on wasm32 to prevent uuid/js activation incompatible with Buck wasm build
- `omit_features` on uuid: removes `js` on wasm32 (same wasm-bindgen incompatibility)
- Build script and overlay fixups for wgpu, wgpu-core, wgpu-hal, winit, cpal, alsa-sys, oboe-sys, hassle-rs
**First-party changes:**
- `xplat/bevy_demo/`: 74 example files migrated to bevy 0.18 API (required components pattern, `delta_secs()`, `DefaultPlugins` without `WinitPlugin`)
- Added Meta license headers to all 74 example files
allow-large-files
bypass-github-export-checks
Reviewed By: dtolnay
Differential Revision: D101469697
fbshipit-source-id: 1174cec5ea8655b196e2188ccabd90662c0f549f1 parent 9bd57e6 commit fc2e12e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments