1extern crate self as substrate_data;
20
21pub mod diagnostic;
22mod forms;
23mod model;
24pub mod names;
25mod sync;
26mod wire;
27
28pub use atom::Atom;
29pub use bumpalo::Bump;
30pub use diagnostic::{Code, Diagnostic, Errors, Problem, Severity};
31#[cfg(feature = "json")]
32pub use forms::json;
33#[cfg(feature = "toml")]
34pub use forms::toml;
35pub use forms::{patch, source, text};
36pub use model::borrowed::{MapRef, ValueRef};
37pub use model::value::{KindName, Map, Path, Ref, RefKey, Seg, Value, ValueKind};
38pub use model::{atom, typed};
39pub use schema::with;
40pub use text::{Doc, LineCol, Span, Spans, SyntaxError};
41pub use wire::stream::{Stream, StreamWriter};
42pub use wire::{binary, frame, io};
43pub mod schema;
44
45pub use schema::{
46 Expected, Id, Kind, Kinds, NamedType, OneOrList, Ordered, Read, Reader, RefId, Resolve, Schema,
47 Shape, ShapeDoc, Uid, Unresolved, from_doc_with, from_text, from_value, from_value_with,
48 placed, read_bytes, read_ref_value, read_value, to_bytes, to_text,
49};
50pub use substrate_data_derive::Schema;
51
52#[cfg(doctest)]
53mod readme;