Skip to content

Can't declare an object implements a trait which is defined externally. #2430

Closed

Description

@mhammond

If you try and do, eg:

#[uniffi::export]
impl SomeTrait for SomeObject { ... }

It breaks if SomeTrait is declared in a different crate from SomeObject (ie, if SomeTrait is "external")

Demonstrated in #2423

Activity

  1. added 3 commits that reference this issue on Aug 7, 2025
    b54375f
    9ffb30f
    4e08248
  2. added a commit that references this issue on Aug 10, 2025
    b0f16dc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions