#crdt #tree


Tree Conflict-free Replicated Data Type (CRDT)

16 releases

0.0.16 Oct 14, 2022
0.0.15 Jun 8, 2021
0.0.14 Mar 3, 2021
0.0.6 Nov 23, 2020

#510 in Filesystem

Download history 15/week @ 2023-06-06 20/week @ 2023-06-13 54/week @ 2023-06-20 30/week @ 2023-06-27 85/week @ 2023-07-04 35/week @ 2023-07-11 20/week @ 2023-07-18 22/week @ 2023-07-25 17/week @ 2023-08-01 218/week @ 2023-08-08 58/week @ 2023-08-15 253/week @ 2023-08-22 88/week @ 2023-08-29 50/week @ 2023-09-05 25/week @ 2023-09-12 21/week @ 2023-09-19

223 downloads per month
Used in 2 crates


622 lines

Build Status crates.io docs.rs


A Conflict-free Replicated Data Type (CRDT) Tree written in Rust.

MaidSafe website SAFE Network Forum


This crate aims to be an accurate implementation of the tree crdt algorithm described in the paper:

A highly-available move operation for replicated trees and distributed filesystems by M. Kleppmann, et al.

Please refer to the paper for a description of the algorithm's properties.

For clarity, data structures in this implementation are named the same as in the paper (State, Tree) or close to (OpMove --> Move, LogOpMove --> LogOp). Some are not explicitly named in the paper, such as TreeId,TreeMeta, TreeNode, Clock.

Additional References


See examples/tree.rs or tests/tree.rs.

In particular, the Replica struct in examples/tree.rs may be helpful.

Other Implementations

There is a PHP implementation here.


This Safe Network library is licensed under the BSD-3-Clause license.

See the LICENSE file for more details.


Want to contribute? Great 🎉

There are many ways to give back to the project, whether it be writing new code, fixing bugs, or just reporting errors. All forms of contributions are encouraged!

For instructions on how to contribute, see our Guide to contributing.


~71K SLoC