#printing #json #numbers #run #run-command

pretty-printing

A simple pretty print implementation

4 releases

0.0.4 Oct 26, 2024
0.0.3 Oct 26, 2024
0.0.2 Oct 26, 2024
0.0.1 Oct 26, 2024

#136 in Value formatting

MIT/Apache

12KB
167 lines

Pretty printing

A simple implementation based on Justin's blog

There are a couple of json files in examples folder. You can run the command below to check the output.

cargo run --release --example json examples/4.json 40 # the last number is the printing line max_width.

Dependencies

~36KB