mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-16 00:03:29 +00:00
ba97339b1b
Problems with the previous code: - `async-compat` is necessary for headless mode (cli server rendering) to load remote scenes from the API without blowing up. Without it, the code complains about the lack of a Tokio runtime. - Unfortunately, `async-compat` doesn't work with WASM and the entire web build is broken by its presence. This change introduces conditional compilation so `async-compat` is only leveraged in headless mode.