From 6df5a22c8699c3979857ccf8f7ff2a8103e47201 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 3 Jan 2021 12:00:21 -0800 Subject: [PATCH 1/2] Set version requirements compatible with -Z minimal-versions --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 64ec1c7c..b4fc9e0a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,8 +13,8 @@ keywords = ["yaml", "serde"] [dependencies] dtoa = "0.4" linked-hash-map = "0.5.3" -serde = "1.0.60" -yaml-rust = "0.4" +serde = "1.0.69" +yaml-rust = "0.4.5" [dev-dependencies] indoc = "1.0" From e656edc0b7de0f639bd3adc887d2cc0962c52364 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 3 Jan 2021 12:03:17 -0800 Subject: [PATCH 2/2] Test minimal-versions in CI --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a16e52af..a76dc70d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,6 +37,15 @@ jobs: - uses: dtolnay/rust-toolchain@clippy - run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic + minimal: + name: Minimal versions + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: dtolnay/rust-toolchain@nightly + - run: cargo update -Z minimal-versions + - run: cargo check + fuzz: name: Fuzz runs-on: ubuntu-latest