Skip to content

Rename #[derive(NativeClass)] types #603

Open
@ghost

Description

The Rust convention suggests that types should not be prefixed with module names. However, GDNative also requires unique class_names for each exported type, which makes the former harder to achieve, since the NativeClass derive macro gets the name from the type identifier. Allowing users to manually provide an alternate name would be an easy way around this limitation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: exportComponent: export (mod export, derive)featureAdds functionality to the library

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions