1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//!
//! [](https://coveralls.io/github/facet-rs/facet?branch=main)
//! [](https://crates.io/crates/facet-pretty)
//! [](https://docs.rs/facet-pretty)
//! [](./LICENSE)
//! [](https://discord.gg/JhD7CwCJ8F)
//!
//! Provides pretty-printing capabilities for Facet types.
//!
//! Example:
//!
//! ```rust
//! 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:
//!
//! ```text
//! Person {
//! name: "Alice",
//! age: 30,
//! }
//! ```
extern crate alloc;
pub use *;
pub use *;
pub use *;
pub use *;