Files
raea/runtime/plugins/Cargo.toml
shinyobjectz 4f74e7e754 #182: no Engine makes an event loop, in any build, so 3D renders on Linux
raea's headless Engines (raea-render's, the page's BlitzPage) left Bevy's WinitPlugin out only when a registered
plugin that brought bevy_winit said so (hanabi's x11, raea-page-host's window). A build that brought it some other
way, cargo unifying features across `-p raea-cli -p raea-page-host --features raea-page-host/window` or the whole
workspace, kept it on: each App made an event loop, winit allows one a process, and every 3D render and play
panicked "Failed to build event loop: RecreationAttempt" on Linux (with no display: "neither WAYLAND_DISPLAY nor
... DISPLAY is set"), while a page rendered.

raea-runtime-plugins now compiles bevy_winit in on the desktop (x11 on Linux, loaded at run time, never opened)
and its group() always leaves WinitPlugin out, however the build brought it. The lockfile already held the graph
(winit was in for raea play's window). A unit test says so on macOS and Ubuntu (CI's test list), and the release
archive check renders a 3D frame on Linux and macOS, on Linux once more with no display: no release step had
rendered 3D on Linux.
2026-11-18 11:59:42 -08:00

31 lines
1.7 KiB
TOML

[package]
name = "raea-runtime-plugins"
version = "0.1.0"
edition = "2024"
license = "FSL-1.1-ALv2"
publish = false
description = "Bevy plugins inside raea's engine: compiled in by a crate that registers them, driven by generic rows through Bevy's TypeRegistry, stepped by the frame index"
[dependencies]
raea-sys-frame = { path = "../../systems/frame" }
raea-sys-material = { path = "../../systems/material" }
# three.js's shaders (docs/r3f.feature R3F11): a `three:uniforms` row patches a part's uniforms
raea-sys-three-shader = { path = "../../systems/three-shader" }
raea-sys-shader = { path = "../../systems/shader" }
raea-core-program = { path = "../../core/program" }
bevy = { version = "=0.20.0", default-features = false, features = ["std", "default_app", "3d_bevy_render", "bevy_state"] }
serde = "1"
raea-core-shape = { path = "../../core/shape" }
raea-bevy-world = { path = "../../engine/bevy-world" }
serde_json = "1"
# Bevy's window plugin compiled in on the desktop, so `group` always has it to leave out (#182): raea's Engines are
# headless, and a build that brings bevy_winit any other way (raea-page-host's window, a plugin's x11, or cargo unifying
# features across `-p raea-cli -p raea-page-host`) made an event loop in each of a process's Apps; winit allows one, so
# the second panicked. Linux's winit needs a backend to compile: x11, loaded at run time and never opened here
[target.'cfg(any(target_os = "macos", target_os = "windows"))'.dependencies]
bevy = { version = "=0.20.0", default-features = false, features = ["bevy_winit"] }
[target.'cfg(target_os = "linux")'.dependencies]
bevy = { version = "=0.20.0", default-features = false, features = ["bevy_winit", "x11"] }