icydb/
lib.rs

1//! ## Crate layout
2//! - `base`: builtin design-time helpers, sanitizers, and validators.
3//! - `build`: internal codegen helpers used by macros and tests.
4//! - `core`: runtime data model, filters, queries, values, and observability.
5//! - `error`: shared error types for generated and runtime code.
6//! - `macros`: derive macros for entities, schemas, and views.
7//! - `schema`: schema AST, builder, and validation utilities.
8//!
9//! The `prelude` module mirrors the runtime surface used inside actor code;
10//! `design::prelude` exposes schema and macro-facing helpers.
11
12pub use icydb_base as base;
13pub use icydb_build as build;
14pub use icydb_core as core;
15pub use icydb_error as error;
16pub use icydb_macros as macros;
17pub use icydb_schema as schema;
18
19//
20// Consts
21//
22
23/// Workspace version re-export for downstream tooling/tests.
24pub const VERSION: &str = env!("CARGO_PKG_VERSION");
25
26//
27// Macros
28//
29
30pub use core::{Error, db, start};
31pub use icydb_build::build;
32
33//
34// Actor Prelude
35//
36
37/// Bring the runtime-facing types, traits, and helpers into scope for actor code.
38pub mod prelude {
39    pub use icydb_core::prelude::*;
40}
41
42//
43// Design Prelude
44// For schema/design code (macros, traits, base helpers).
45//
46
47/// Schema/design-facing helpers (separate from the actor/runtime prelude).
48pub mod design {
49    pub mod prelude {
50        pub use icydb_core::design::prelude::*;
51    }
52}