Skip to content

Commit 21f303e

Browse files
committed
Add workflow to check for minimal versions
1 parent 6856549 commit 21f303e

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

Diff for: .github/workflows/rust.yml

+15
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,21 @@ jobs:
1717
- uses: dtolnay/[email protected]
1818
- run: cargo check
1919

20+
minimal-versions:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Install tools
25+
run: cargo install cargo-hack cargo-minimal-versions
26+
- name: Check with minimal versions
27+
run: cargo minimal-versions check
28+
- name: Check with minimal versions (serialize)
29+
run: cargo minimal-versions check --features serialize
30+
- name: Check with minimal versions (encoding)
31+
run: cargo minimal-versions check --features encoding
32+
- name: Check with minimal versions (async-tokio)
33+
run: cargo minimal-versions check --features async-tokio
34+
2035
test:
2136
strategy:
2237
matrix:

Diff for: Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ memchr = "2.1"
2424
criterion = "0.4"
2525
pretty_assertions = "1.3"
2626
regex = "1"
27-
serde = { version = "1.0", features = ["derive"] }
27+
# #[serde(other)] allowed not only inside field_identifier since 1.0.79
28+
# serde does not follow semver in numbering and their dependencies, so we specifying patch here
29+
serde_derive = { version = "1.0.79" }
2830
serde-value = "0.7"
2931
tokio = { version = "1.21", default-features = false, features = ["macros", "rt"] }
3032
tokio-test = "0.4"

0 commit comments

Comments
 (0)