Skip to content

Commit

Permalink
bump criterion and cargo dependencies (pest-parser#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtau committed Jun 19, 2023
1 parent 867da2e commit 360df12
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inputs:
toolchain:
description: Toolchain version
required: false
default: "1.56.1"
default: "1.60.0"
components:
description: Toolchain components
required: false
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: ./.github/actions/setup
with:
kind: check
toolchain: 1.62.0
toolchain: 1.64.0
- name: cargo check
run: cargo check --all --features pretty-print,const_prec_climber,memchr --all-targets

Expand All @@ -40,7 +40,7 @@ jobs:
with:
kind: check
components: clippy, rustfmt
toolchain: 1.62.0
toolchain: 1.64.0
- name: cargo fmt
run: cargo fmt --all -- --check
- name: cargo clippy
Expand All @@ -62,7 +62,7 @@ jobs:
id: setup
with:
kind: check
toolchain: 1.62.0
toolchain: 1.64.0
- name: cargo doc
run: cargo doc --all --features pretty-print,const_prec_climber,memchr

Expand All @@ -79,7 +79,7 @@ jobs:
with:
kind: msrv
tools: cargo-msrv
toolchain: 1.59.0
toolchain: 1.60.0
- name: Check msrv
shell: sh
run: for crate in "derive" "generator" "grammars" "meta" "pest" "vm"; do cd "$crate" && cargo msrv verify && cd ..; done
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
id: setup
with:
kind: check
toolchain: 1.62.0
toolchain: 1.64.0
- name: Check feature powerset
run: cargo hack check --feature-powerset --optional-deps --exclude-all-features --skip not-bootstrap-in-src,cargo --keep-going --lib --tests --ignore-private

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

[![pest Continuous Integration](https://github.com/pest-parser/pest/actions/workflows/ci.yml/badge.svg)](https://github.com/pest-parser/pest/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/pest-parser/pest/branch/master/graph/badge.svg)](https://codecov.io/gh/pest-parser/pest)
<a href="https://blog.rust-lang.org/2021/11/01/Rust-1.56.1.html"><img alt="Rustc Version 1.56.1+" src="https://img.shields.io/badge/rustc-1.56.1%2B-lightgrey.svg"/></a>
<a href="https://blog.rust-lang.org/2021/11/01/Rust-1.60.0.html"><img alt="Rustc Version 1.60.0+" src="https://img.shields.io/badge/rustc-1.60.0%2B-lightgrey.svg"/></a>

[![Crates.io](https://img.shields.io/crates/d/pest.svg)](https://crates.io/crates/pest)
[![Crates.io](https://img.shields.io/crates/v/pest.svg)](https://crates.io/crates/pest)
Expand Down Expand Up @@ -202,7 +202,7 @@ You can find more projects and ecosystem tools in the [awesome-pest](https://git

## Minimum Supported Rust Version (MSRV)

This library should always compile with default features on **Rust 1.56.1**
This library should always compile with default features on **Rust 1.60.0**
or **Rust 1.61** with `const_prec_climber`.

## no_std support
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repository = "https://github.com/pest-parser/pest"
documentation = "https://docs.rs/pest"
publish = false
license = "MIT/Apache-2.0"
rust-version = "1.56"
rust-version = "1.60"

[dependencies]
pest_generator = "2.1.1" # Use the crates-io version, which (should be) known-good
Expand Down
2 changes: 1 addition & 1 deletion debugger/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords = ["pest", "grammar", "debugger"]
categories = ["parsing"]
license = "MIT/Apache-2.0"
readme = "_README.md"
rust-version = "1.56"
rust-version = "1.60"

[dependencies]
pest = { path = "../pest", version = "2.6.1" }
Expand Down
2 changes: 1 addition & 1 deletion derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords = ["pest", "parser", "peg", "grammar"]
categories = ["parsing"]
license = "MIT/Apache-2.0"
readme = "_README.md"
rust-version = "1.56"
rust-version = "1.60"

[lib]
name = "pest_derive"
Expand Down
2 changes: 1 addition & 1 deletion generator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords = ["pest", "generator"]
categories = ["parsing"]
license = "MIT/Apache-2.0"
readme = "_README.md"
rust-version = "1.56"
rust-version = "1.60"

[features]
default = ["std"]
Expand Down
4 changes: 2 additions & 2 deletions grammars/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ keywords = ["pest", "parser", "peg", "grammar"]
categories = ["parsing"]
license = "MIT/Apache-2.0"
readme = "_README.md"
rust-version = "1.56"
rust-version = "1.60"

[dependencies]
pest = { path = "../pest", version = "2.6.1" }
pest_derive = { path = "../derive", version = "2.6.1" }

[dev-dependencies]
criterion = "0.3"
criterion = "0.5"
pretty_assertions = "1.3.0"

[[bench]]
Expand Down
2 changes: 1 addition & 1 deletion grammars/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "pest_grammars-fuzz"
version = "0.0.0"
authors = ["Automatically generated"]
publish = false
rust-version = "1.56"
rust-version = "1.60"

[package.metadata]
cargo-fuzz = true
Expand Down
6 changes: 3 additions & 3 deletions meta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ license = "MIT/Apache-2.0"
readme = "_README.md"
exclude = ["src/grammar.pest"]
include = ["Cargo.toml", "src/**/*", "src/grammar.rs", "_README.md", "LICENSE-*"]
rust-version = "1.56"
rust-version = "1.60"

[dependencies]
pest = { path = "../pest", version = "2.6.1" }
once_cell = "1.8.0"

[build-dependencies]
sha2 = { version = "0.10", default-features = false }
cargo = { version = "0.62", optional = true }
cargo = { version = "0.70", optional = true }

[features]
default = []
not-bootstrap-in-src = ["cargo"]
not-bootstrap-in-src = ["dep:cargo"]
2 changes: 1 addition & 1 deletion meta/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "pest_meta-fuzz"
version = "0.0.0"
authors = ["Automatically generated"]
publish = false
rust-version = "1.56"
rust-version = "1.60"

[package.metadata]
cargo-fuzz = true
Expand Down
6 changes: 3 additions & 3 deletions pest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ keywords = ["pest", "parser", "peg", "grammar"]
categories = ["parsing"]
license = "MIT/Apache-2.0"
readme = "_README.md"
rust-version = "1.56"
rust-version = "1.60"

[features]
default = ["std"]
# Implements `std::error::Error` for the `Error` type
std = ["ucd-trie/std", "thiserror"]
std = ["ucd-trie/std", "dep:thiserror"]
# Enables the `to_json` function for `Pair` and `Pairs`
pretty-print = ["serde", "serde_json"]
pretty-print = ["dep:serde", "dep:serde_json"]
# Enable const fn constructor for `PrecClimber`
const_prec_climber = []

Expand Down
7 changes: 6 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ get_manifest_path() {

publish() {
echo "Publishing crate $1..."
cargo publish --manifest-path "$(get_manifest_path "${1}")" --allow-dirty --all-features
if [ "${1}" == "pest" ]; then
cargo publish --manifest-path "$(get_manifest_path "${1}")" --allow-dirty --all-features
else
# cannot publish with the `not-bootstrap-in-src` feature enabled
cargo publish --manifest-path "$(get_manifest_path "${1}")" --allow-dirty
fi
echo ""
}

Expand Down
2 changes: 1 addition & 1 deletion vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords = ["pest", "vm"]
categories = ["parsing"]
license = "MIT/Apache-2.0"
readme = "_README.md"
rust-version = "1.56"
rust-version = "1.60"

[dependencies]
pest = { path = "../pest", version = "2.6.1" }
Expand Down

0 comments on commit 360df12

Please sign in to comment.