Skip to content

Conversation

@Leeeon233
Copy link
Member

Here is an attempt using uniffi-rs v0.29, in which they support Allow UDL to define Enums with objects so that we can

[Enum]
interface Container{
    List(LoroList container);
    Map(LoroMap container);
    Text(LoroText container);
    Tree(LoroTree container);
    MovableList(LoroMovableList container);
    Counter(LoroCounter container);
    Unknown(LoroUnknown container);
};

[Enum]
interface ValueOrContainer{
    Value(LoroValue value);
    Container(Container container);
};

However, the definition of remote type is strengthened at the same time. In the current architecture, all types in loro-ffi are remote types. uniffi-rs do not yet support remote definitions of traits

@Leeeon233 Leeeon233 closed this Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants