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 authored and dralley committed Feb 26, 2023
1 parent 50b7615 commit 40b1448
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/rust.yml
Expand Up @@ -17,6 +17,23 @@ 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: Install nightly rust
uses: dtolnay/rust-toolchain@nightly
- 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
6 changes: 4 additions & 2 deletions Cargo.toml
Expand Up @@ -17,14 +17,16 @@ include = ["src/*", "LICENSE-MIT.md", "README.md"]
document-features = { version = "0.2", optional = true }
encoding_rs = { version = "0.8", optional = true }
serde = { version = "1.0.100", optional = true }
tokio = { version = "1.0", optional = true, default-features = false, features = ["io-util"] }
tokio = { version = "1.10", optional = true, default-features = false, features = ["io-util"] }
memchr = "2.1"

[dev-dependencies]
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
1 change: 1 addition & 0 deletions Changelog.md
Expand Up @@ -35,6 +35,7 @@
The same behavior for the `Reader` does not implemented (yet?) and should be
implemented manually
- [#562]: Correctly set minimum required version of memchr dependency to 2.1
- [#565]: Correctly set minimum required version of tokio dependency to 1.10
- [#565]: Fix compilation error when build with serde <1.0.139

### Misc Changes
Expand Down

0 comments on commit 40b1448

Please sign in to comment.