Tags: bevyengine/bevy
Tags
Allow partial support for `bevy_log` in `no_std` (#18782) # Objective - Fixes #18781 ## Solution - Moved `LogPlugin` into its own file gated behind a new `tracing` feature. - Used `log` instead of `tracing` where possible. - Exposed a new `tracing` feature in `bevy` which enables `bevy_log/tracing`. - Gated `LogPlugin` from `DefaultPlugins` on `tracing` feature. ## Testing - CI --- ## Migration Guide - If you were previously using `bevy_log` with default features disabled, enable the new `std` and `tracing` features. - If you were using `bevy` with the default features disabled, enable the new `tracing` feature. ## Notes Almost all of the diffs in this PR come from moving `LogPlugin` into its own file. This just makes the PR less noisy, since the alternative is excessive `#[cfg(feature = "tracing")]` directives all over the plugin. --------- Co-authored-by: François Mockers <[email protected]>
enable std when building bevy_dylib (#18405) - bevy_dylib fails to build: ``` Compiling bevy_dylib v0.16.0-rc.1 (/bevy/crates/bevy_dylib) error: linking with `cc` failed: exit status: 1 | = note: some arguments are omitted. use `--verbose` to show all linker arguments = note: Undefined symbols for architecture arm64: "__critical_section_1_0_acquire", referenced from: critical_section::with::h00cfbe529dea9dc9 in libbevy_tasks-53c9db6a3865f250.rlib[58](bevy_tasks-53c9db6a3865f250.evom2xwveqp508omiiqb25xig.rcgu.o) "__critical_section_1_0_release", referenced from: core::ptr::drop_in_place$LT$critical_section..with..Guard$GT$::hfa034e0208e1a49d in libbevy_tasks-53c9db6a3865f250.rlib[48](bevy_tasks-53c9db6a3865f250.d9dwgpd0156zfn2h5z5ff94zn.rcgu.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) ``` - enable `std` when building bevy_dylib --------- Co-authored-by: Zachary Harrold <[email protected]>
PreviousNext