Spytial
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
[]
= "0.1"
= { = "1", = ["derive"] }
Diagrammed types need Debug, Serialize, and #[derive(SpytialDecorators)].
Docs
- Guide: https://sidprasad.github.io/spytial-rust/
- API reference: https://docs.rs/spytial
License
MIT or Apache-2.0, at your option.