Crate crdts

source ·
Expand description

A pure-Rust library of thoroughly-tested, serializable CRDT’s.

Conflict-free Replicated Data Types (CRDTs) are data structures which can be replicated across multiple networked nodes, and whose properties allow for deterministic, local resolution of possible inconsistencies which might result from concurrent operations.

Re-exports

Modules

  • This module contains context for editing a CRDT.
  • This module contains the Dot (Actor + Sequence Number)
  • This module contains a Grow-only Counter.
  • This module contains a Grow-only List.
  • This module contains a Grow-only Set.
  • This module contains a dense Identifier. Dense Identifiers.
  • This module contains a Sequence.
  • This module contains a Last-Write-Wins Register.
  • This module contains a Map with Reset-Remove and Observed-Remove semantics.
  • This module contains a Merkle-Dag Register.
  • This module contains a Multi-Value Register.
  • This module contains an Observed-Remove Set With Out Tombstones.
  • This module contains a Positive-Negative Counter.
  • This module contains the Vector Clock This module contains a generic Vector Clock implementation.

Traits

  • Common Actor type. Actors are unique identifier for every thing mutating a VClock. VClock based CRDT’s will need to expose this Actor type to the user.
  • Operation based CRDT’s replicate by transmitting each operation.
  • State based CRDT’s replicate by transmitting the entire CRDT state.
  • CRDT’s are causal if they are built on top of vector clocks.