simdjson-rust

Github Actions Crates.io docs.rs

This crate currently uses simdjson 3.2.3. You can have a try and give feedback.

If you

Please submit an issue.

Usage

Add this to your Cargo.toml

```toml

In the [dependencies] section

simdjson-rust = {git = "https://github.com/SunDoge/simdjson-rust"} ```

Then, get started.

```rust use simdjson_rust::{ondemand::Parser, prelude::*};

fn main() -> simdjsonrust::Result<()> { let mut parser = Parser::default(); let ps = makepaddedstring("[0,1,2,3]"); let mut doc = parser.iterate(&ps)?; let mut array = doc.getarray()?; for (index, value) in array.iter()?.enumerate() { asserteq!(index as u64, value?.getuint64()?); } Ok(()) } ```