surreal_sync_json/lib.rs
1//! JSON type conversions and from_jsonl origin for surreal-sync.
2//!
3//! - [`types`] — bidirectional TypedValue ↔ JSON conversions
4//! - [`from_jsonl`] — JSONL file/S3/HTTP origin sync (feature-gated)
5//!
6//! # Embed surface
7//!
8//! With the `from_jsonl` feature, embedders use only:
9//!
10//! ```ignore
11//! use surreal_sync_json::{run, FlattenId, InPlaceTransform, Value};
12//! // or: use surreal_sync_json::from_jsonl::{run, FlattenId, InPlaceTransform, Value};
13//! ```
14
15#[cfg(feature = "types")]
16pub mod types;
17
18#[cfg(feature = "from_jsonl")]
19pub mod from_jsonl;
20
21/// Crate-root sugar for the public embed surface (same four items as
22/// [`from_jsonl`]).
23#[cfg(feature = "from_jsonl")]
24pub use from_jsonl::{run, FlattenId, InPlaceTransform, Value};