Skip to main content

uni_common/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2024-2026 Dragonscale Team
3
4pub mod api {
5    pub mod error;
6}
7
8pub mod config;
9pub mod cypher_value_codec;
10pub mod muvera;
11pub mod sync;
12pub mod value;
13pub mod vector_index_opts;
14
15pub mod core {
16    pub mod edge_type;
17    pub mod fork;
18    pub mod id;
19    pub mod schema;
20    pub mod snapshot;
21}
22
23pub mod graph {
24    pub mod simple_graph;
25}
26
27// Re-exports for convenience
28pub use api::error::{
29    GRAPH_COMPUTE_INCOMPLETE_TAG, GraphComputeIncomplete, GraphComputeIncompleteReason,
30    LocyIncomplete, LocyIncompleteReason, Result, UniError,
31};
32pub use config::{CloudStorageConfig, UniConfig};
33pub use core::edge_type::EdgeTypeId;
34pub use core::fork::{ForkId, ForkInfo, ForkRegistryFile, ForkStatus, SchemaDelta};
35pub use core::id::{Eid, UniId, Vid};
36pub use core::schema::{CrdtType, DataType, Schema};
37pub use graph::simple_graph::SimpleGraph;
38pub use uni_btic;
39pub use uni_sparse_vector;
40#[doc(inline)]
41pub use value::{Edge, FromValue, Node, Path, TemporalType, TemporalValue, Value, cmp_i64_f64};
42
43/// String-keyed property map using [`Value`] for type-preserving storage.
44pub type Properties = std::collections::HashMap<String, Value>;