Skip to content

SunDoge/simdjson-rust

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

simdjson-rust

Build Status Build status

This crate is currently updating to support simdjson 0.3.1! You can have a try and give feedback.

Usage

Add this to your Cargo.toml

# In the `[dependencies]` section
simdjson-rust = {git = "https://github.com/SunDoge/simdjson-rust"}

Then, get started.

use simdjson_rust::dom;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut parser = dom::Parser::default();
    let tweets = parser.load("json-examples/twitter.json")?;
    println!(
        "{} results.",
        tweets
            .at_key("search_metadata")?
            .at_key("count")?
            .get_u64()?
    );
    Ok(())
}

Roadmap

  • ParsedJson
  • ParsedJsonIterator
  • printjson (impl Display)
  • ci
  • tests
  • benchmark

About

Rust bindings for the simdjson project.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published