Skip to content

make bevy_utils::DebugName public outside of prelude (#23641)#23725

Open
Arne-Berner wants to merge 1 commit intobevyengine:mainfrom
Arne-Berner:main
Open

make bevy_utils::DebugName public outside of prelude (#23641)#23725
Arne-Berner wants to merge 1 commit intobevyengine:mainfrom
Arne-Berner:main

Conversation

@Arne-Berner
Copy link
Copy Markdown

Objective

Fixes #23641

Solution

To stay consistent to the provided API by bevy_utils I only made DebugName public instead of debug_info.

Testing

I was able to call DebugName from outside like this:

use bevy_utils::DebugName;

struct Foo();

fn main() {
    let name = DebugName::type_name::<Foo>();
    println!("{name}");
}

This is a simple change that should be platform independent.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Welcome, new contributor!

Please make sure you've read our contributing guide, as well as our policy regarding AI usage, and we look forward to reviewing your pull request shortly ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bevy_utils::prelude is the only module making the DebugName public

1 participant