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
//! # KIVI format deserializer
//!
//! KIVI is a simple text format for storing keys with associated values on separate lines.
//! While it is not as widely known as formats like JSON or INI, it is straightforward
//! and particularly useful in specific contexts where keys or values consist
//! of multiple lines of text.
//!
//! An example of a configuration file in KIVI format:
//!
//! ```text
//! host
//! 127.0.0.1
//!
//! port
//! 54321
//!
//! timeout
//! 12ms
//! ```
//!
//! `host`, `port` and `timeout` are keys; `127.0.0.1`, `54321`, `12ms` are values.
//!
//! It is quite similar to properties or INI file that store key-value pair in a single line.
//!
//! In KIVI format, the key and/or value may span over multiple lines.
//! Multiple-line keys or values must be enclosed in quotation marks.
//!
//! ```text
//! host
//! 127.0.0.1
//!
//! port
//! 54321
//!
//! timeout
//! 12ms
//!
//! "General
//! description"
//! "This configuration file
//! should be placed in the same
//! directory where the servers
//! binary is placed"
//! ```
pub use ;
pub use KeyValuePairs;