Expand description
Caraspace is a drop-in replacement for std::dbg! that opens an
interactive diagram of Rust values in the browser.
The crate-level entry points are dbg! (a strict superset of
std::dbg!) and diagram (no stderr, doesn’t move). Both work on any
type that derives std::fmt::Debug, serde::Serialize, and
SpytialDecorators.
Start with the guide at https://sidprasad.github.io/caraspace/ for the tutorial, decorator reference, and architecture notes. The README on GitHub has the elevator pitch.
Re-exports§
pub use export::export_json_instance;
Modules§
- export
- Serde-driven export of Rust values into the relational
jsondatashape. - jsondata
- Serializable atom/relation data model consumed by spytial-core.
Relational JSON data model produced by
crate::export_json_instance. - spytial_
annotations - SpyTial decorator types, derive-macro runtime, and YAML serialization.
Macros§
- dbg
- Strict superset of
std::dbg!: prints theDebugrepresentation to stderr and opens an interactive diagram of the value in your browser.
Functions§
- diagram
- Creates a diagram of the given data structure and opens it in the browser.
- diagram_
with_ spec - Creates a diagram with a custom SpyTial specification (legacy function).
Derive Macros§
- Spytial
Decorators - Derive macro for implementing HasSpytialDecorators trait