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
54
55
56
57
58
59
60
61
62
63
64
//! A fully spec-compliant [NestedText](https://nestedtext.org) v3.8 parser and serializer.
//!
//! NestedText is a data format similar to YAML but with no type ambiguity — all leaf
//! values are strings. No quoting, no escaping, no type coercion surprises.
//!
//! # Quick start
//!
//! ```rust
//! use nested_text::{loads, dumps, Top, DumpOptions};
//!
//! let input = "name: Alice\nage: 30\n";
//! let value = loads(input, Top::Any).unwrap().unwrap();
//!
//! assert_eq!(value.get("name").unwrap().as_str(), Some("Alice"));
//!
//! let output = dumps(&value, &DumpOptions::default());
//! let roundtripped = loads(&output, Top::Any).unwrap().unwrap();
//! assert_eq!(value, roundtripped);
//! ```
//!
//! # serde support
//!
//! Enabled by default via the `serde` feature. Since NestedText only has string
//! scalars, numeric and boolean fields are parsed from their string representation.
//!
//! ```rust
//! use serde::Deserialize;
//!
//! #[derive(Deserialize)]
//! struct Config {
//! name: String,
//! debug: bool,
//! port: u16,
//! }
//!
//! let config: Config = nested_text::from_str("name: app\ndebug: true\nport: 8080").unwrap();
//! assert_eq!(config.port, 8080);
//! ```
//!
//! # Features
//!
//! - **`serde`** (default) — enables [`from_str`] and [`to_string`] for serde integration
pub use ;
pub use ;
pub use ;
pub use Value;
pub use from_str;
pub use ;