From 235d5b92161f5cd5ff29736db392a7e1be66c8e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 16 Aug 2024 15:40:58 +0300 Subject: [PATCH] ci: Add Cargo.lock that works with Rust 1.31 (MSRV) --- .github/workflows/ci.yml | 3 +++ Cargo.lock.msrv | 14 ++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 Cargo.lock.msrv diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 383bc9e..e967236 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,9 @@ jobs: - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} + - name: Use MSRV Cargo.lock + run: cp Cargo.lock.msrv Cargo.lock + if: matrix.toolchain == '1.31' - name: cargo fmt --all -- --check run: | rustup component add rustfmt-preview diff --git a/Cargo.lock.msrv b/Cargo.lock.msrv new file mode 100644 index 0000000..c5dd9c2 --- /dev/null +++ b/Cargo.lock.msrv @@ -0,0 +1,14 @@ +[[package]] +name = "lazy_static" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "pkg-config" +version = "0.3.30" +dependencies = [ + "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[metadata] +"checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"