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
//! # simdjson-rust
//!
//! High-performance JSON parsing for Rust, backed by the
//! [simdjson](https://github.com/simdjson/simdjson) C++ library.
//!
//! ## Quick Start
//!
//! ```rust
//! use simdjson_rust::dom::Parser;
//!
//! let mut parser = Parser::default();
//! let value = parser
//! .parse_to_value(r#"{"hello": "world", "n": 42}"#)
//! .unwrap();
//! println!("{value:?}");
//! ```
//!
//! ## Serde Support
//!
//! With the default `serde` feature you can deserialize directly into any
//! `serde::Deserialize` type:
//!
//! ```rust
//! # #[cfg(feature = "serde")]
//! # {
//! use serde::Deserialize;
//! use simdjson_rust::serde::from_str;
//!
//! #[derive(Deserialize, Debug)]
//! struct Config {
//! name: String,
//! value: u64,
//! }
//!
//! let cfg: Config = from_str(r#"{"name": "example", "value": 99}"#).unwrap();
//! println!("{cfg:?}");
//! # }
//! ```
/// Re-export the simdjson-sys padding constant.
pub use SIMDJSON_PADDING;