Skip to main content

corium_forms/
lib.rs

1//! Boundary conversion between EDN forms and engine types.
2//!
3//! Two pure, dependency-light modules bridge the Datomic-dialect EDN used at
4//! the wire and console boundaries onto the engine's schema and transaction
5//! types:
6//!
7//! * [`schemaform`] turns `{:db/ident … :db/valueType …}` maps into a
8//!   [`corium_core::Schema`] and its [`corium_db::Idents`].
9//! * [`txforms`] turns map/list transaction forms into [`corium_tx::TxItem`]s.
10//!
11//! Both depend only on the pure engine crates (`corium-core`, `corium-db`,
12//! `corium-query`, `corium-tx`), so they compile anywhere those do —
13//! including `wasm32-unknown-unknown`. `corium-protocol` re-exports them for
14//! back-compatible paths (`corium_protocol::schemaform`,
15//! `corium_protocol::txforms`).
16
17pub mod schemaform;
18pub mod txforms;