Skip to content

Doc printing #2

@BrianWiz

Description

@BrianWiz

It would be really awesome if your app had the ability to print out docs with comments that explain each field within your config. This would be useful for end users who want to override them.

I tried taking a dive into this and it proved harder than I was imagining. I was trying to print the config struct in RON format with doc comments, as that would be the most intuitive implementation, but its hard, I was basically finding myself writing my own RON formatter... It wouldn't be so hard if there wasn't struct nesting.

Approaches I took were a proc macro, that was hard because I'm not used to macros, so then I switched to trying out using Bevy's reflection system which helped a bit.

Still, could use the help with this one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions