Skip to content

refactor: upgrade to uniffi v0.29 #14

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

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

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

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.

1 participant