Skip to main content

rust_store_core/schema/
mod.rs

1//! Schema 管理(对应 JS `src/schema.js`)
2//!
3//! 与 JS 版的差异:注册表由模块级全局 `_schemas` 改为显式 `Registry` 实例。
4//!
5//! 文件组织:数据结构与字段规范化在 [`definition`],注册/定位/配置在 [`registry`]。
6//! 对外 API(`Registry` / `Schema` / `FieldDef` / `RelationDef` / `ComputeDef` / `map_of`)
7//! 由本模块统一再导出,拆分不改语义。
8
9mod definition;
10mod load;
11mod registry;
12
13pub use definition::{map_of, ComputeDef, FieldDef, Location, RelationDef, Schema};
14pub use load::{depth_layered, locate, plan_load, LoadConfig, SourceDecl};
15pub use registry::{Profile, Registry};