-
Notifications
You must be signed in to change notification settings - Fork 5
Description
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.