facet-pretty 0.44.1

Pretty-printing for Facet types with syntax highlighting and customizable formatting
Documentation

facet-pretty

Coverage Status crates.io documentation MIT/Apache-2.0 licensed Discord

Provides pretty-printing capabilities for Facet types.

Example:

use facet::Facet;
use facet_pretty::FacetPretty;

#[derive(Debug, Facet)]
struct Person {
    name: String,
    age: u32,
}

let person = Person {
    name: "Alice".to_string(),
    age: 30,
};
println!("Default pretty-printing:");
println!("{}", person.pretty());

Produces the output:

Person {
  name: "Alice",
  age: 30,
}

Sponsors

Thanks to all individual sponsors:

...along with corporate sponsors:

...without whom this work could not exist.

Special thanks

The facet logo was drawn by Misiasart.

License

Licensed under either of:

at your option.