Expand description
§simdjson-rust
High-performance JSON parsing for Rust, backed by the simdjson C++ library.
§Quick Start
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:
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:?}");Modules§
- dom
- High-level DOM parser wrapping
simdjson_sys. - error
- Simdjson error code translations and strong type definitions.
- serde
serde::Deserializerimplementation backed by the simdjson tape.- tape
- Tape parser for simdjson DOM tape format.
Constants§
- SIMDJSON_
PADDING - Re-export the simdjson-sys padding constant.