bevy/examples/app
Sung-jin Brian Hong 694db96ab8
Fix compile errors on headless example (#18497)
# Objective

- Fixes compile errors on headless example when running `cargo run
--example headless --no-default-features`

```
error[E0432]: unresolved import `bevy::log`
  --> examples/app/headless.rs:13:39
   |
13 | use bevy::{app::ScheduleRunnerPlugin, log::LogPlugin, prelude::*};
   |                                       ^^^ could not find `log` in `bevy`

For more information about this error, try `rustc --explain E0432`.
error: could not compile `bevy` (example "headless") due to 1 previous error
```

## Solution

- Since commit cc69fdd bevy_log has been identified as a separate
feature, thus requiring additional parameters to build headless example.
- Changed the command to run to: `cargo run --example headless
--no-default-features --features bevy_log`

## Testing

- The new command successfully builds the example
2025-03-23 21:24:20 +00:00
..
custom_loop.rs Renamed EventWriter::send methods to write. (#17977) 2025-02-23 21:18:52 +00:00
drag_and_drop.rs
empty_defaults.rs
empty.rs
headless_renderer.rs Renamed EventWriter::send methods to write. (#17977) 2025-02-23 21:18:52 +00:00
headless.rs Fix compile errors on headless example (#18497) 2025-03-23 21:24:20 +00:00
log_layers_ecs.rs Renamed EventWriter::send methods to write. (#17977) 2025-02-23 21:18:52 +00:00
log_layers.rs Remove tracing re-export from bevy_utils (#17161) 2025-01-05 23:06:34 +00:00
logs.rs Merge Style properties into Node. Use ComputedNode for computed properties. (#15975) 2024-10-18 22:25:33 +00:00
no_renderer.rs Add configuration for async pipeline creation on RenderPlugin (#11847) 2024-02-16 13:35:47 +00:00
plugin_group.rs Remove second generic from .add_before, .add_after (#14285) 2024-07-15 15:58:14 +00:00
plugin.rs Remove everything except Instant from bevy_utils::time (#17158) 2025-01-05 20:36:08 +00:00
return_after_run.rs Remove redundant imports (#12817) 2024-04-01 19:59:08 +00:00
thread_pool_resources.rs
without_winit.rs Migrate cameras to required components (#15641) 2024-10-05 01:59:52 +00:00