Registry / utility / pretty

pretty

JSON →
library0.12.5rscratesunverified

Wadler-style pretty-printing combinators in Rust

# Cargo.toml [dependencies] pretty = "0.12.5"
INSTALL
IMPORT
SIG · PRETTY
P
pretty
utilityrustv0.12.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Doc
use pretty::Doc;

Pretty-print a document with a line width of 80

use pretty::Doc; let doc = Doc::text("Hello").append(Doc::space()).append(Doc::text("world!")); let rendered = doc.pretty(80); println!("{}", rendered);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.12.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Amazon
1
Resources
pretty — cargo add pretty · libregistry