Skip to main content

co_api/
lib.rs

1// SPDX-License-Identifier: AGPL-3.0-only
2// Copyright (C) 2026 1io BRANDGUARDIAN GmbH
3
4// modules
5mod co_v1;
6mod library;
7mod types;
8
9/// exports
10pub use cid::Cid;
11pub use co_macros::co;
12pub use co_primitives::{
13	cid_to_raw, from_cbor, from_json, raw_to_cid, reducer_action_core, reducer_action_core_from_storage,
14	serde_map_as_list, tags, to_cbor, to_json, to_json_string, AbsolutePath, AbsolutePathOwned, Block, BlockSerializer,
15	BlockSerializerError, BlockStorage, BlockStorageExt, Clock, CoId, CoList, CoListIndex, CoListTransaction, CoMap,
16	CoMapTransaction, CoMetadata, CoReference, CoSet, CoSetTransaction, CoTryStreamExt, Component, Components,
17	CoreBlockStorage, Date, DefaultNodeSerializer, DefaultParams, Did, Entry, GuardInput, GuardOutput, IsDefault,
18	LazyTransaction, Link, Linkable, Metadata, Network, Node, NodeBuilder, NodeBuilderError, NodeSerializer,
19	OptionLink, Path, PathExt, PathOwned, RawCid, ReducerAction, ReducerInput, ReducerOutput, RelativePath,
20	RelativePathOwned, Secret, SignedEntry, Storage, StorageError, StoreParams, Tag, TagMatcher, TagPattern, TagValue,
21	Tags, TagsExpr, TotalFloat64, WeakCid, WithCoMetadata, CID_MAX_SIZE,
22};
23pub use co_v1::{storage_block_get, storage_block_set};
24pub use library::{
25	guard::{guard, GuardRef},
26	reduce::{reduce, ReducerRef},
27};
28pub use types::{
29	guard::Guard,
30	reducer::{Context, Reducer},
31};