1#![doc = include_str!("../README.md")]
2#![warn(
3 clippy::cargo,
4 missing_docs,
5 clippy::pedantic,
6 future_incompatible,
7 rust_2018_idioms
8)]
9#![allow(
10 clippy::option_if_let_else,
11 clippy::module_name_repetitions,
12 clippy::missing_errors_doc
13)]
14#![deny(unsafe_code)]
15#![no_std]
16#![cfg_attr(any(docsrs, feature = "nightly"), feature(doc_auto_cfg))]
17
18#[cfg(any(feature = "std", test))]
19extern crate std;
20
21#[cfg(feature = "alloc")]
22extern crate alloc;
23
24pub use crate::anystr::AnyStr;
25pub use crate::error::{Error, ErrorKind};
26pub use crate::number::JsonNumber;
27pub use crate::string::{JsonString, JsonStringInfo};
28#[cfg(feature = "alloc")]
29pub use crate::value::{Entry, Object, Value};
30
31mod anystr;
32pub mod doc;
34mod error;
35mod number;
36pub mod parser;
38mod string;
39#[cfg(all(test, feature = "alloc"))]
40mod tests;
41#[cfg(feature = "alloc")]
42mod value;