From 21f303e4b0b5b587581b62610a3bee5f951dade0 Mon Sep 17 00:00:00 2001 From: Mingun Date: Sun, 26 Feb 2023 22:31:12 +0500 Subject: [PATCH] Add workflow to check for minimal versions --- .github/workflows/rust.yml | 15 +++++++++++++++ Cargo.toml | 4 +++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 4d96b9a8..58379a2d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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: diff --git a/Cargo.toml b/Cargo.toml index a9a70058..a2b8ea96 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"