Skip to main content

apiary_core/
lib.rs

1//! Apiary core types, traits, configuration, and errors.
2//!
3//! This crate provides the foundational building blocks for the Apiary
4//! distributed data processing framework: typed identifiers, the
5//! [`StorageBackend`] trait, node configuration with system detection,
6//! and the unified error type.
7
8pub mod config;
9pub mod error;
10pub mod ledger_types;
11pub mod registry;
12pub mod registry_manager;
13pub mod storage;
14pub mod types;
15
16pub use config::NodeConfig;
17pub use error::ApiaryError;
18pub use ledger_types::{
19    CellMetadata, CellSizingPolicy, ColumnStats, FieldDef, FrameSchema, LedgerAction,
20    LedgerCheckpoint, LedgerEntry, WriteResult,
21};
22pub use registry::{Box, Frame, Hive, Registry};
23pub use registry_manager::RegistryManager;
24pub use storage::StorageBackend;
25pub use types::*;
26
27/// Convenience Result type using [`ApiaryError`].
28pub type Result<T> = std::result::Result<T, ApiaryError>;