-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring the trait interface code
This is prep work for allowing the foreign bindings to implement traits. Moved trait interface code in `uniffi_macros` to its own module. Updated the test trait in the coverall fixture. I think this one will work better to test foreign trait impls. The `ancestor_names()` method is a good way to test trait implementations that bounce between the Rust and foreign side of the FFI. Added Getters test like we have with callback interfaces. We want to replace callback interfaces with trait interfaces, so we should have good test coverage. This actually revealed that the trait code didn't support exceptions yet.
- Loading branch information
Showing
10 changed files
with
518 additions
and
190 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
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.