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
/*!
A Rust implementation of [Tot](https://github.com/totlang/tot).
Tot is a configuration language meant to be edited by hand.
# Features
* Whitespace-based format that _does not_ require indentation
* Simple, limited syntax
* JSON-style objects and lists
* Reference values (WIP)
* File import (WIP)
* Non-Turing complete Lisp-style expressions (WIP)
* Compatible with:
* JSON
* YAML
* TOML
# Example
```
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
struct Person {
name: String,
age: u32,
}
fn main() {
let person = Person {
name: "youwin".to_string(),
age: 100
};
let output = tot::to_string(&person).unwrap();
assert_eq!("\
name \"youwin\"
age 100.0
", output);
let person = tot::from_str::<Person>(output.as_str()).unwrap();
assert_eq!(person.name, "youwin");
assert_eq!(person.age, 100);
}
```
*/
pub use from_str;
pub use to_string;
pub use ;
pub use TotValue;