From 93a173bbffe0c6012af9ce031d471fe3fbf244a9 Mon Sep 17 00:00:00 2001 From: cetra3 Date: Thu, 24 Feb 2022 17:36:53 +1030 Subject: [PATCH] Fix readme and doc links --- README.md | 9 ++------- jmespath/Cargo.toml | 2 +- jmespath/src/lib.rs | 2 +- jmespath/src/parser.rs | 2 +- jmespath/src/runtime.rs | 2 +- 5 files changed, 6 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 26a6aef5..8a4774af 100644 --- a/README.md +++ b/README.md @@ -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/) @@ -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 @@ -26,7 +21,7 @@ efficient code: ```toml [dependencies.jmespath] -version = "^0.2.0" +version = "^0.3.0" features = ["specialized"] ``` diff --git a/jmespath/Cargo.toml b/jmespath/Cargo.toml index 68454c02..f7f4451d 100644 --- a/jmespath/Cargo.toml +++ b/jmespath/Cargo.toml @@ -3,7 +3,7 @@ name = "jmespath" version = "0.3.0" authors = ["Michael Dowling "] 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" diff --git a/jmespath/src/lib.rs b/jmespath/src/lib.rs index f3533d66..4c67c053 100644 --- a/jmespath/src/lib.rs +++ b/jmespath/src/lib.rs @@ -142,7 +142,7 @@ pub type Rcvar = std::sync::Arc; /// by using the `lazy_static` macro. /// /// The provided expression is expected to adhere to the JMESPath -/// grammar: http://jmespath.org/specification.html +/// grammar: #[inline] pub fn compile(expression: &str) -> Result, JmespathError> { DEFAULT_RUNTIME.compile(expression) diff --git a/jmespath/src/parser.rs b/jmespath/src/parser.rs index 88d0b745..b1cd0017 100644 --- a/jmespath/src/parser.rs +++ b/jmespath/src/parser.rs @@ -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 +//! use std::collections::VecDeque; diff --git a/jmespath/src/runtime.rs b/jmespath/src/runtime.rs index fe505cbc..68295b5c 100644 --- a/jmespath/src/runtime.rs +++ b/jmespath/src/runtime.rs @@ -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: #[inline] pub fn compile<'a>(&'a self, expression: &str) -> Result, JmespathError> { parse(expression).map(|ast| Expression::new(expression, ast, self))