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 ✨

Copy link
Copy Markdown
Contributor

@andriyDev andriyDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah nice! Yeah only exposing from prelude is goofy.

@kfc35 kfc35 added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it D-Trivial Nice and easy! A great choice to get started with Bevy labels Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

D-Trivial Nice and easy! A great choice to get started with Bevy S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

5 participants