Merge branch 'bevyengine:main' into main

This commit is contained in:
Ian Ruiz 2024-11-20 16:43:47 -06:00 committed by GitHub
commit 10e8bd2109
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 4 additions and 3 deletions

View file

@ -18,6 +18,7 @@ bevy_debug_stepping = []
serialize = ["dep:serde"]
track_change_detection = []
reflect_functions = ["bevy_reflect", "bevy_reflect/functions"]
detailed_trace = []
[dependencies]
bevy_ptr = { path = "../bevy_ptr", version = "0.15.0-dev" }

View file

@ -24,7 +24,7 @@ trace = [
trace_chrome = ["bevy_log/tracing-chrome"]
trace_tracy = ["bevy_render?/tracing-tracy", "bevy_log/tracing-tracy"]
trace_tracy_memory = ["bevy_log/trace_tracy_memory"]
detailed_trace = ["bevy_utils/detailed_trace"]
detailed_trace = ["bevy_ecs/detailed_trace", "bevy_render?/detailed_trace"]
sysinfo_plugin = ["bevy_diagnostic/sysinfo_plugin"]

View file

@ -30,6 +30,7 @@ ci_limits = []
webgl = ["wgpu/webgl"]
webgpu = ["wgpu/webgpu"]
ios_simulator = []
detailed_trace = []
[dependencies]
# bevy

View file

@ -18,7 +18,6 @@ std = [
"ahash/runtime-rng",
]
alloc = ["hashbrown/default"]
detailed_trace = []
serde = ["hashbrown/serde"]
[dependencies]

View file

@ -411,7 +411,7 @@ pub fn error<E: Debug>(result: Result<(), E>) {
#[macro_export]
macro_rules! detailed_trace {
($($tts:tt)*) => {
if cfg!(detailed_trace) {
if cfg!(feature = "detailed_trace") {
$crate::tracing::trace!($($tts)*);
}
}