layouts 0.1.0

Conveniently lay out and format your data structures, and decide how to render them separately
Documentation
  • Coverage
  • 0%
    0 out of 10 items documented0 out of 3 items with examples
  • Size
  • Source code size: 27.31 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 628.72 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 22s Average build duration of successful builds.
  • all releases: 22s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • ergorusty/layouts
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • wycats

This crate is currently a work in progress, and doesn't yet have great API entry points, nor very good documentation. Both are forthcoming.

layouts helps you lay out and format your data structures, and decide how to render them separately.

This allows you to describe the full structure up front, and deal with the width of your terminal separately.

It will also turn any Rust data structure that supports Serialize into a pretty-printable document that can be rendered using layouts with zero configuration.

TODO: Pluggable Renderers

Right now, the only thing layouts allows you to configure when rendering is the width of the terminal.

Eventually, this library aspires to offer pluggable renderers that can support:

  • describing your data structures with styles, which can then be separately rendered into colors, or with no color
  • HTML rendering (with streaming and collapsing)
  • and more (see TODO.md for more details)