-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented a new custom type system descibed in the new docs. This system is easier to use and also allows us to do some extra tricks behind the scene. For example, I hope to add a flag that will toggle between implementing `FfiConverter` for the local tag vs a blanket impl. It's not possible to do that with the current system and adding support would be awkward. I wanted to keep backwards compatability for a bit, but couldn't figure out a good way to do it. The main issue is that for the old system, if a custom type is declared in the UDL then we generate the `FfiConverter` implementation, while the new system expects the user to call `custom_type!` to create the impl. I tried to get things working by creating a blanket impl of `FfiConverter` for types that implemented `UniffiCustomTypeConverter`, but ran into issues -- the first blocker I found was that there's no way to generate `TYPE_ID_META` since we don't know the name of the custom type. Removed the nested-module-import fixture. The custom type code will no longer test it once we remove the old code, since it's not using `UniffiCustomTypeConverter`. I couldn't think of a way to make it work again.
- Loading branch information
Showing
20 changed files
with
391 additions
and
424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.