Skip to content

Commit

Permalink
Add workflow to check for minimal versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingun committed Feb 26, 2023
1 parent 6856549 commit 21f303e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/rust.yml
Expand Up @@ -17,6 +17,21 @@ jobs:
- uses: dtolnay/rust-toolchain@1.52.0
- run: cargo check

minimal-versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install tools
run: cargo install cargo-hack cargo-minimal-versions
- name: Check with minimal versions
run: cargo minimal-versions check
- name: Check with minimal versions (serialize)
run: cargo minimal-versions check --features serialize
- name: Check with minimal versions (encoding)
run: cargo minimal-versions check --features encoding
- name: Check with minimal versions (async-tokio)
run: cargo minimal-versions check --features async-tokio

test:
strategy:
matrix:
Expand Down
4 changes: 3 additions & 1 deletion Cargo.toml
Expand Up @@ -24,7 +24,9 @@ memchr = "2.1"
criterion = "0.4"
pretty_assertions = "1.3"
regex = "1"
serde = { version = "1.0", features = ["derive"] }
# #[serde(other)] allowed not only inside field_identifier since 1.0.79
# serde does not follow semver in numbering and their dependencies, so we specifying patch here
serde_derive = { version = "1.0.79" }
serde-value = "0.7"
tokio = { version = "1.21", default-features = false, features = ["macros", "rt"] }
tokio-test = "0.4"
Expand Down

0 comments on commit 21f303e

Please sign in to comment.