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
#![doc = include_str!("../README.md")]
#![warn(
clippy::cargo,
missing_docs,
clippy::pedantic,
future_incompatible,
rust_2018_idioms
)]
#![allow(
clippy::option_if_let_else,
clippy::module_name_repetitions,
clippy::missing_errors_doc
)]
#![deny(unsafe_code)]
#![no_std]
#![cfg_attr(any(docsrs, feature = "nightly"), feature(doc_auto_cfg))]
#[cfg(any(feature = "std", test))]
extern crate std;
#[cfg(feature = "alloc")]
extern crate alloc;
pub use crate::anystr::AnyStr;
pub use crate::error::{Error, ErrorKind};
pub use crate::number::JsonNumber;
pub use crate::string::{JsonString, JsonStringInfo};
#[cfg(feature = "alloc")]
pub use crate::value::{Object, Value};
mod anystr;
pub mod doc;
mod error;
mod number;
pub mod parser;
mod string;
#[cfg(all(test, feature = "alloc"))]
mod tests;
#[cfg(feature = "alloc")]
mod value;