Skip to content

Commit 32c8434

Browse files
committed
Upgrade juniper crate from 0.15 to 0.16 version
- bump up MSRV to 1.73 Additionally: - upgrade `heck` crate from 0.4 to 0.5 version
1 parent bfb17df commit 32c8434

File tree

5 files changed

+26
-8
lines changed

5 files changed

+26
-8
lines changed

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
strategy:
8383
fail-fast: false
8484
matrix:
85-
msrv: ["1.65.0"]
85+
msrv: ["1.73.0"]
8686
os:
8787
- ubuntu
8888
- macOS

Diff for: CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,24 @@ All user visible changes to `gherkin` crate will be documented in this file. Thi
66

77

88

9+
## [0.15.0] · 2024-??-?? (unreleased)
10+
[0.15.0]: /../../tree/v0.15.0
11+
12+
[Diff](/../../compare/v0.14.0...v0.15.0)
13+
14+
### BC Breaks
15+
16+
- Bump up [MSRV] to 1.73 to support newer versions of dependencies. ([todo])
17+
18+
### Upgraded
19+
20+
- [`juniper`] crate to 0.16 version. ([todo])
21+
22+
[todo]: /../../commit/todo
23+
24+
25+
26+
927
## [0.14.0] · 2023-07-14
1028
[0.14.0]: /../../tree/v0.14.0
1129

Diff for: Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "gherkin"
33
version = "0.14.0"
44
edition = "2018"
5-
rust-version = "1.65"
5+
rust-version = "1.73"
66
description = """\
77
Pure Rust implementation of Gherkin language (`.feature` file) for \
88
Cucumber testing framework.\
@@ -38,10 +38,10 @@ typed-builder = { version = "0.18", optional = true }
3838
serde = { version = "1.0.103", features = ["derive"], optional = true }
3939

4040
# "juniper" feature enables ability to use AST as GraphQL types.
41-
juniper = { version = "0.15.12", default-features = false, optional = true }
41+
juniper = { version = "0.16", default-features = false, optional = true }
4242

4343
[build-dependencies]
44-
heck = "0.4"
44+
heck = "0.5"
4545
quote = "1.0"
4646
serde = { version = "1.0", features = ["derive"] }
4747
serde_json = "1.0"

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Gherkin language for Rust
22
=========================
33

44
[![crates.io](https://img.shields.io/crates/v/gherkin.svg "crates.io")](https://crates.io/crates/gherkin)
5-
[![Rust 1.65+](https://img.shields.io/badge/rustc-1.65+-lightgray.svg "Rust 1.65+")](https://blog.rust-lang.org/2022/11/03/Rust-1.65.0.html)
5+
[![Rust 1.73+](https://img.shields.io/badge/rustc-1.73+-lightgray.svg "Rust 1.73+")](https://blog.rust-lang.org/2023/10/05/Rust-1.73.0.html)
66
[![Unsafe Forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg "Unsafe forbidden")](https://github.com/rust-secure-code/safety-dance)
77
[![CI](https://github.com/cucumber-rs/gherkin/workflows/CI/badge.svg?branch=main "CI")](https://github.com/cucumber-rs/gherkin/actions?query=workflow%3ACI+branch%3Amain)
88
[![Rust docs](https://docs.rs/gherkin/badge.svg "Rust docs")](https://docs.rs/gherkin)

Diff for: src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub struct Span {
7676
}
7777

7878
#[cfg(feature = "juniper")]
79-
#[cfg_attr(feature = "juniper", juniper::graphql_object)]
79+
#[juniper::graphql_object]
8080
impl Span {
8181
pub fn start(&self) -> i32 {
8282
self.start as i32
@@ -95,7 +95,7 @@ pub struct LineCol {
9595
}
9696

9797
#[cfg(feature = "juniper")]
98-
#[cfg_attr(feature = "juniper", juniper::graphql_object)]
98+
#[juniper::graphql_object]
9999
impl LineCol {
100100
pub fn line(&self) -> i32 {
101101
self.line as i32
@@ -188,7 +188,7 @@ pub struct Feature {
188188
pub position: LineCol,
189189
/// The path supplied for the parsed `Feature`, if known.
190190
#[cfg_attr(feature = "parser", builder(default))]
191-
#[cfg_attr(feature = "juniper", graphql(skip))]
191+
#[cfg_attr(feature = "juniper", graphql(ignore))]
192192
pub path: Option<PathBuf>,
193193
}
194194

0 commit comments

Comments
 (0)