You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a new way for binding generators to load the CIs, Configs,
metadata, etc. I'm hoping that this can replace the `generate_bindings`
and `generate_external_bindings` functions, as well some other functions
like `library_mode::find_components`.
The goal for the new design is to let bindings generators drive the
process instead of a function like `generate_external_bindings`. The
advantage of this is that it's easier to customize and we don't need to
keep adding new hook methods. It also feels simpler overall to me. See
mozilla#2640 for a discussion of this.
If we adopt this new system, then I think we can use it to remove a
bunch of duplicate code. We can keep around the old functions for
backwards-compatibility, but I think they can just be wrappers around
`BindgenLoader`. Also, we should figure out a nice way to hook this up
to the pipeline code.
Made `uniffi-bindgen-swift` use the new system. This was mostly to test
the code and to serve as an example, but a nice side-benefit is that
`uniffi-bindgen-swift` now can handle UDL files. I also added a
`uniffi-bindgen-swift` binary file to go with the `uniffi-bindgen`
binary.
0 commit comments