Skip to content

Could godot_codegen::conv::to_pascal_case be made pub? #1409

@SomeRanDev

Description

@SomeRanDev

I'm writing some build.rs code generation using information from extension_api.json, but I'm having some difficulty determining the Rust struct name of a Node from its Godot counterpart.

Using godot_codegen::models::json::load_extension_api seems like overkill for my simple build script, is there any chance godot_codegen::conv::to_pascal_case could be made public for uses like this? Or maybe there's a method I'm missing that could do this?

EDIT: special_cases::is_godot_type_deleted would also be really nice to have. Hmm... maybe there could be a pub function that returns a mapping of GDScript -> Rust names that are available, so you can get the conversions and check if they're deleted?

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: toolingCI, automation, toolsfeatureAdds functionality to the library

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions