Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record metadata for a struct implementing a trait. #2204

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Sep 4, 2024

  1. Record metadata for a struct implementing a trait.

    ```
    #[uniffi::export]
    impl MyTrait for MyObject { ... }
    ```
    
    Currently works by ignoring `MyTrait`. This adds new metadata
    to record it, allowing foreign bindings to implement things like
    inheritance
    
    Includes Python, Kotlin and Swift generating these sub-classes.
    There's some undesirable re-wrapping when traits from these
    objects gets passed back and forward, but seems to work surprisingly well.
    
    Fixes mozilla#2196.
    mhammond committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    7163779 View commit details
    Browse the repository at this point in the history