Skip to content

Commit

Permalink
Fix readme and doc links
Browse files Browse the repository at this point in the history
  • Loading branch information
cetra3 committed Feb 24, 2022
1 parent 20b2b8f commit 93a173b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# JMESPath for Rust

[![Build Status](https://travis-ci.org/mtdowling/jmespath.rs.svg?branch=master)](https://travis-ci.org/mtdowling/jmespath.rs)
[![Coverage Status](https://coveralls.io/repos/github/mtdowling/jmespath.rs/badge.svg?branch=master)](https://coveralls.io/github/mtdowling/jmespath.rs?branch=master)
[![Current Version](http://meritbadge.herokuapp.com/jmespath)](https://crates.io/crates/jmespath)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/jmespath/chat)

Rust implementation of [JMESPath](http://jmespath.org), a query language for JSON.

[Documentation](https://docs.rs/jmespath/)
Expand All @@ -16,7 +11,7 @@ by adding `jmespath` to the dependencies in your project's `Cargo.toml`.

```toml
[dependencies]
jmespath = "^0.2.0"
jmespath = "^0.3.0"
```

If you are using a nightly compiler, or reading this when specialization in Rust
Expand All @@ -26,7 +21,7 @@ efficient code:

```toml
[dependencies.jmespath]
version = "^0.2.0"
version = "^0.3.0"
features = ["specialized"]
```

Expand Down
2 changes: 1 addition & 1 deletion jmespath/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "jmespath"
version = "0.3.0"
authors = ["Michael Dowling <mtdowling@gmail.com>"]
description = "Rust implementation of JMESPath, a query language for JSON"
readme = "README.md"
readme = "../README.md"
keywords = ["json", "jmespath", "query"]
homepage = "https://github.com/jmespath/jmespath.rs"
repository = "https://github.com/jmespath/jmespath.rs"
Expand Down
2 changes: 1 addition & 1 deletion jmespath/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub type Rcvar = std::sync::Arc<Variable>;
/// by using the `lazy_static` macro.
///
/// The provided expression is expected to adhere to the JMESPath
/// grammar: http://jmespath.org/specification.html
/// grammar: <https://jmespath.org/specification.html>
#[inline]
pub fn compile(expression: &str) -> Result<Expression<'static>, JmespathError> {
DEFAULT_RUNTIME.compile(expression)
Expand Down
2 changes: 1 addition & 1 deletion jmespath/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! This JMESPath parser is implemented using a Pratt parser,
//! or top down operator precedence parser:
//! http://hall.org.ua/halls/wizzard/pdf/Vaughan.Pratt.TDOP.pdf
//! <https://tdop.github.io/>
use std::collections::VecDeque;

Expand Down
2 changes: 1 addition & 1 deletion jmespath/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl Runtime {
/// Creates a new JMESPath expression from an expression string.
///
/// The provided expression is expected to adhere to the JMESPath
/// grammar: http://jmespath.org/specification.html
/// grammar: <https://jmespath.org/specification.html>
#[inline]
pub fn compile<'a>(&'a self, expression: &str) -> Result<Expression<'a>, JmespathError> {
parse(expression).map(|ast| Expression::new(expression, ast, self))
Expand Down

0 comments on commit 93a173b

Please sign in to comment.