keyvalues_serde/
lib.rs

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
#![doc = include_str!("../README.md")]
#![allow(unknown_lints)]
#![allow(clippy::result_large_err)]
// TODO: resolve this ^^

pub mod de;
pub mod error;
pub mod ser;

// The tokenstreams are fuzzed even though they are not exposed publicly
#[cfg(fuzzing)]
pub mod tokens;
#[cfg(not(fuzzing))]
mod tokens;

pub use keyvalues_parser as parser;

#[doc(inline)]
pub use de::{
    from_reader, from_reader_with_key, from_str, from_str_with_key, from_vdf, from_vdf_with_key,
    Deserializer,
};
#[doc(inline)]
pub use error::{Error, Result};
#[doc(inline)]
pub use ser::{to_string, to_string_with_key, to_writer, to_writer_with_key, Serializer};