eidetica/crdt/mod.rs
1//! Conflict-free Replicated Data Types (CRDTs) for distributed data structures.
2//!
3//! This module provides CRDT implementations that enable automatic conflict resolution
4//! in distributed systems. CRDTs guarantee that concurrent updates can be merged
5//! deterministically, ensuring eventual consistency without coordination.
6//!
7//! # Core Types
8//!
9//! - [`doc::Doc`] - The main CRDT document type for user interactions
10//! - [`doc::Value`] - The value type for nested structures
11//! - [`doc::List`] - An ordered collection with rational number positioning
12//! - [`doc::list::Position`] - Rational number-based positions for stable list ordering
13//!
14//! # Traits
15//!
16//! - [`Data`] - Marker trait for types that can be stored in Eidetica
17//! - [`CRDT`] - Core trait defining merge semantics for conflict resolution
18
19// Core modules
20pub mod doc;
21pub mod errors;
22pub mod traits;
23
24// Re-export core types
25pub use doc::Doc;
26pub use errors::CRDTError;
27pub use traits::{CRDT, Data};