Skip to main content

logicaffeine_data/
lib.rs

1#![cfg_attr(docsrs, feature(doc_cfg))]
2#![doc = include_str!("../README.md")]
3
4pub mod crdt;
5pub mod fmt;
6pub mod indexing;
7pub mod ops;
8pub mod types;
9pub mod wire;
10
11// Re-export commonly used types
12pub use crdt::{
13    generate_replica_id, AddWins, DeltaBuffer, DeltaCrdt, Dot, DotContext, GCounter, LWWRegister,
14    MVRegister, Merge, ORMap, ORSet, PNCounter, RemoveWins, ReplicaId, SetBias, VClock, RGA, YATA,
15};
16pub use types::{
17    Bool, Byte, Char, FillClone, FxIndexMap, FxIndexSet, Int, LogosContains, LogosDenseI64Map, LogosDenseI64MapNoPresence,
18    LogosDenseI64Set, LogosDivU64, LogosI32Map, LogosI32Set, LogosI64Map, LogosI64Set, LogosMap,
19    LogosComplex, LogosDecimal, LogosInt, LogosModular, LogosMoney, LogosQuantity, LogosRational, Map, Nat, Real, Seq, Set, Text, Tuple,
20    Unit, Value, LogosSeq, LogosUuid, IntoRate, set_rate, set_rates, to_currency,
21    text_bytes, text_from_bytes,
22};
23pub use rustc_hash::{FxHashMap, FxHashSet};
24pub use indexing::{LogosGetChar, LogosIndex, LogosIndexMut};
25pub use ops::{logos_add_exact, logos_add_i64, logos_approx_eq, logos_cmp_i64_f64, logos_div_exact, logos_div_i128, logos_div_i64, logos_floordiv_exact, logos_i64_eq_f64, logos_i64_key_of_f64, logos_mul_exact, logos_mul_i64, logos_narrow_i128, logos_pow_exact, logos_rem_exact, logos_rem_i128, logos_rem_i64, logos_sub_exact, logos_sub_i64, logos_truthy, Truthy};