Skip to content

Added JMESPath for Rust to the list of libraries.#31

Merged
jamesls merged 1 commit intomasterfrom
mtdowling-add-rust
Dec 17, 2016
Merged

Added JMESPath for Rust to the list of libraries.#31
jamesls merged 1 commit intomasterfrom
mtdowling-add-rust

Conversation

@mtdowling
Copy link
Copy Markdown
Contributor

This adds Rust to the list of libraries. Crate: https://crates.io/crates/jmespath

There's also a crate that can statically compile JMESPath expressions at build time so that you know your expressions are correct and so that you don't need to parse them at runtime: https://crates.io/crates/jmespath-macros

There's a CLI that should have pretty close to a 1:1 implementation of jp available here: https://github.com/mtdowling/jmespath.rs/tree/master/jmespath-cli. I might try to one day get this creating cross platforms builds and try to convince you to switch jp to Rust. I'd of course have benchmarks to provide a motivation for the switch.

I also created a streaming implementation that I never finished if anyone is interested in checking it out. It isn't tested very well and doesn't have functions, but I got pretty far. I just don't think most JMESPath expressions are suitable for streaming searches considering how much buffering would be needed: https://github.com/mtdowling/jmespath.rs/tree/jmespath-streaming/jmespath-streaming

@jamesls
Copy link
Copy Markdown
Member

jamesls commented Dec 17, 2016

Awesome!

@jamesls jamesls merged commit a54bf85 into master Dec 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants