Skip to content

Automatic conversion between rust structs and loro docs #888

@St4NNi

Description

@St4NNi

I know there's already issue #564 about json doc initialization, but I'm curious about something slightly different.

Would it be possible to have a bridge that converts between Rust structs and Loro documents in both directions, similar to what autosurgeon does for automerge?

The idea would be using derive macros to automatically handle the conversions, so you could work with regular Rust types and have them sync with Loro documents without writing all the conversion code manually.

Is this something that could fit into Loro's design, or are there technical reasons why this wouldn't work well with how Loro is structured?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions