From 3f502ed8ab47ab07e28224bd57bd5fb1351d7e8b Mon Sep 17 00:00:00 2001 From: Casper Meijn Date: Sun, 18 Aug 2024 08:43:52 +0200 Subject: [PATCH 1/2] build(deps): Update `target-lexicon` to 0.12.15 This crate fails to build with version 0.12.11. So the minimal version should be 0.12.15. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 2a2a3af..4197ebf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ targets = ["target-lexicon"] [dependencies] smallvec = "1.8" -target-lexicon = { version = "0.12.11", optional = true } +target-lexicon = { version = "0.12.15", optional = true } [dev-dependencies] similar-asserts = "1.1" From 3e00e6ed899d19dda98ad7968d0ec4e343ff5236 Mon Sep 17 00:00:00 2001 From: Casper Meijn Date: Sun, 18 Aug 2024 08:39:55 +0200 Subject: [PATCH 2/2] ci: Check minimal version of dependencies Check that the minimal dependency versions specified in `Cargo.toml` successfully builds. `cargo minimal-versions check` will downgrade all dependencies and then run `cargo check`. --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2023f3d..dfc723e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,3 +65,13 @@ jobs: - run: cargo fetch - name: cargo publish check run: cargo publish --dry-run + + minimal-versions: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@nightly + - uses: dtolnay/rust-toolchain@stable + - uses: taiki-e/install-action@cargo-hack + - uses: taiki-e/install-action@cargo-minimal-versions + - run: cargo minimal-versions check --all-features