Development Documentation (main branch) - For stable release docs, see docs.rs/eidetica

Module crdt

Module crdt 

Source
Expand description

Conflict-free Replicated Data Types (CRDTs) for distributed data structures.

This module provides CRDT implementations that enable automatic conflict resolution in distributed systems. CRDTs guarantee that concurrent updates can be merged deterministically, ensuring eventual consistency without coordination.

§Core Types

  • doc::Doc - The main CRDT document type for user interactions
  • doc::Value - The value type for nested structures
  • doc::List - An ordered collection with rational number positioning
  • doc::list::Position - Rational number-based positions for stable list ordering

§Traits

  • Data - Marker trait for types that can be stored in Eidetica
  • CRDT - Core trait defining merge semantics for conflict resolution

Re-exports§

pub use doc::Doc;
pub use errors::CRDTError;
pub use traits::CRDT;
pub use traits::Data;

Modules§

doc
Document CRDT
errors
Error types for CRDT operations.
traits
Core traits for CRDT (Conflict-free Replicated Data Type) implementations.