Skip to main content

Crate logicaffeine_data

Crate logicaffeine_data 

Source
Expand description

WASM-safe data structures and CRDTs

This crate provides pure data structures with NO IO dependencies. It compiles for both native and wasm32-unknown-unknown targets.

§LAMPORT INVARIANT

This crate has NO path to system IO. No tokio, no libp2p, no SystemTime. Timestamps are injected by callers (typically from logicaffeine_system).

Re-exports§

pub use crdt::generate_replica_id;
pub use crdt::AddWins;
pub use crdt::DeltaBuffer;
pub use crdt::DeltaCrdt;
pub use crdt::Dot;
pub use crdt::DotContext;
pub use crdt::GCounter;
pub use crdt::LWWRegister;
pub use crdt::MVRegister;
pub use crdt::Merge;
pub use crdt::ORMap;
pub use crdt::ORSet;
pub use crdt::PNCounter;
pub use crdt::RemoveWins;
pub use crdt::ReplicaId;
pub use crdt::SetBias;
pub use crdt::VClock;
pub use crdt::RGA;
pub use crdt::YATA;
pub use types::Bool;
pub use types::Byte;
pub use types::Char;
pub use types::Int;
pub use types::LogosContains;
pub use types::Map;
pub use types::Nat;
pub use types::Real;
pub use types::Seq;
pub use types::Set;
pub use types::Text;
pub use types::Tuple;
pub use types::Unit;
pub use types::Value;
pub use indexing::LogosIndex;
pub use indexing::LogosIndexMut;

Modules§

crdt
CRDT (Conflict-free Replicated Data Types)
indexing
Polymorphic indexing traits for Logos collections.
types
Core runtime type definitions.