mozilla / uniffi-rs

a multi-language bindings generator for rust
https://mozilla.github.io/uniffi-rs/
Mozilla Public License 2.0
2.66k stars 218 forks source link

External type fails for some corner cases #2121

Open bendk opened 3 months ago

bendk commented 3 months ago

It's tricky to get the FFI function signatures correct for external types since we don't know the concrete actual type. Here's where we determine the FFI type to use. I can think of at least 2 cases where this will fail:

Now that the proc-macro metadata code has matured, I think we can fix both of these issues by:

mhammond commented 3 months ago

This is kinda #2025? I'm really starting to think we should rethink external types and insist on being able to resolve them.