spytial 0.2.0

Drop-in replacement for std::dbg! that opens an interactive diagram of Rust values (Spytial for Rust).
Documentation

Spytial

crates.io docs.rs License

A drop-in replacement for std::dbg! that opens an interactive diagram of a Rust value in your browser instead of printing nested text:

- std::dbg!(tree)
+ spytial::dbg!(tree)

Your terminal output is unchanged; a browser tab also opens with a diagram of the value. The layout is controlled by declarative decorators on your types.

Install

[dependencies]
spytial = "0.1"
serde = { version = "1", features = ["derive"] }

Diagrammed types need Debug, Serialize, and #[derive(SpytialDecorators)].

Docs

License

MIT or Apache-2.0, at your option.