Skip to main content

Crate caraspace

Crate caraspace 

Source
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 jsondata shape.
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 the Debug representation 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§

SpytialDecorators
Derive macro for implementing HasSpytialDecorators trait