2 releases

0.1.1 May 11, 2023
0.1.0 May 11, 2023

#4 in #rich-text

MIT license

460KB
14K SLoC

crdt-richtext

Rust implementation of Peritext and Fugue

This crate contains a subset of Loro CRDT(which is not yet open-source)

📚 See the blog post

The interface is not yet stable and is subject to changes. Do not use it in production.

This Rust crate provides an implementation of Peritext that is optimized for performance. This crate uses a separate data structure to store the range annotation, decoupled from the underlying list CRDT. This implementation depends on RangeMap trait, which can be implemented efficiently to make the overall algorithm fast. But currently, this crate only provides a dumb implementation to provide a proof of concept.


lib.rs:

Rust implementation of Peritext and Fugue

This crate contains a subset of Loro CRDT

This Rust crate provides an implementation of Peritext that is optimized for performance. This crate uses a separate data structure to store the range annotation, decoupled from the underlying list CRDT. This implementation depends on RangeMap trait, which can be implemented efficiently to make the overall algorithm fast. But currently, this crate only provides a dumb implementation to provide a proof of concept.

Dependencies

~5–11MB
~127K SLoC