Skip to content

"Internal" binding specs in TH mode #1457

@edsko

Description

@edsko

Suppose a user wants to use bindgen in TH mode, and they want to generate multiple modules, perhaps corresponding to multiple main haeders in a given library. If header B uses types defined in header A, we need some kind of "internal" binding spec, that we could pass from module A to module B. A similar situation arises if a user wants to emulate the preprocessor in TH mode, and generate a .Safe and .Unsafe module.

We had previously considered and then dismissed the generation of binding specs in TH mode (#1046), on the grounds that TH binding specs "don't really exist"; the spec is not useful, because there is no re-usable set of bindings that could be used elsewhere and needs a description. This ticket is more narrowly focused: this is using bindings from one module in another, within the same project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bindingspecsIssues related to binding specifications (input, external, or generated)enhancementNew feature or requestpriority: medium

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions