Skip to content

Forward declaration of all pointers #215

@Kamayuq

Description

@Kamayuq

cbindgen does not forward declare its pointers or struct members when they are used in the generated header. One could even inline forward declare following rust types for each place they are used as pointers: "struct Name();" The reason why I am asking for this is that I want to split my interface into multiple modules, headers and c/cpp files. And as of now I have to forward declare certain pointer-types that are shared between the modules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions