Skip to content

You cannot create a second #[godot_api] for an impl #1498

@miruji

Description

@miruji

As far as I can see right now, you cannot create a second #[godot_api] for the same structure twice.

I’m not sure if this is a well-known behavior, but I ran into it when I was moving some methods out of a large file to split the logic (over 2,000 lines). Essentially, you cannot move #[func] methods anywhere except a single file this way — and that’s quite unfortunate for large files.

The compiler itself points out that #[godot_api] can only appear once per struct impl.

My version is 0.4.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionNot a problem with the library, but a question regarding usage.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions