Skip to content

Commit 464aedf

Browse files
authored
Patch dependencies whose latest versions are no longer compatible with 1.75 (#42)
Signed-off-by: Grey <[email protected]>
1 parent e826741 commit 464aedf

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

.github/workflows/ci_linux.yaml

+14-6
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,27 @@ jobs:
2828
- name: Setup rust
2929
run: rustup default ${{ matrix.rust-version }}
3030

31+
# As new versions of our dependencies come out, they might depend on newer
32+
# versions of the Rust compiler. When that happens, we'll use this step to
33+
# lock down the dependency to a version that is known to be compatible with
34+
# compiler version 1.75.
35+
- name: Patch dependencies
36+
if: ${{ matrix.rust-version == 1.75 }}
37+
run: ./scripts/patch-versions-msrv-1_75.sh
38+
3139
- name: Build default features
32-
run: cargo build --workspace --ignore-rust-version
40+
run: cargo build --workspace
3341
- name: Test default features
34-
run: cargo test --workspace --ignore-rust-version
42+
run: cargo test --workspace
3543

3644
- name: Test diagram
37-
run: cargo test --workspace -F=diagram --ignore-rust-version
45+
run: cargo test --workspace -F=diagram
3846

3947
- name: Build single_threaded_async
40-
run: cargo build --features single_threaded_async --ignore-rust-version
48+
run: cargo build --features single_threaded_async
4149
- name: Test single_threaded_async
42-
run: cargo test --features single_threaded_async --ignore-rust-version
50+
run: cargo test --features single_threaded_async
4351

4452
- name: Build docs
45-
run: cargo doc --ignore-rust-version
53+
run: cargo doc
4654

scripts/patch-versions-msrv-1_75.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This script is useful for forcing dependencies to be compatible with Rust v1.75
2+
# Run this script in the root directory of the package.
3+
4+
cargo add home@=0.5.9

0 commit comments

Comments
 (0)