serde_nt 0.1.12

NestedText (de)serialization for serde, powered by nt_syntax
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! 基于 [`nt_syntax`] 的 NestedText serde 序列化 / 反序列化。
//!
//! NestedText 的叶子只有字符串;数字、布尔、枚举按字符串表示解析与输出。
//!
//! ```ignore
//! let conf: Conf = serde_nt::from_str(text)?;
//! let text = serde_nt::to_string(&conf)?;
//! ```

mod de;
mod dump;
mod error;
mod ser;

pub use de::{from_str, from_value};
pub use dump::dumps;
pub use error::{Error, Result};
pub use ser::{to_string, to_value};