Skip to content

Commit

Permalink
Patch dependencies whose latest versions are no longer compatible wit…
Browse files Browse the repository at this point in the history
…h 1.75 (#42)

Signed-off-by: Grey <[email protected]>
  • Loading branch information
mxgrey authored Jan 8, 2025
1 parent e826741 commit 464aedf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/ci_linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,27 @@ jobs:
- name: Setup rust
run: rustup default ${{ matrix.rust-version }}

# As new versions of our dependencies come out, they might depend on newer
# versions of the Rust compiler. When that happens, we'll use this step to
# lock down the dependency to a version that is known to be compatible with
# compiler version 1.75.
- name: Patch dependencies
if: ${{ matrix.rust-version == 1.75 }}
run: ./scripts/patch-versions-msrv-1_75.sh

- name: Build default features
run: cargo build --workspace --ignore-rust-version
run: cargo build --workspace
- name: Test default features
run: cargo test --workspace --ignore-rust-version
run: cargo test --workspace

- name: Test diagram
run: cargo test --workspace -F=diagram --ignore-rust-version
run: cargo test --workspace -F=diagram

- name: Build single_threaded_async
run: cargo build --features single_threaded_async --ignore-rust-version
run: cargo build --features single_threaded_async
- name: Test single_threaded_async
run: cargo test --features single_threaded_async --ignore-rust-version
run: cargo test --features single_threaded_async

- name: Build docs
run: cargo doc --ignore-rust-version
run: cargo doc

4 changes: 4 additions & 0 deletions scripts/patch-versions-msrv-1_75.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This script is useful for forcing dependencies to be compatible with Rust v1.75
# Run this script in the root directory of the package.

cargo add home@=0.5.9

0 comments on commit 464aedf

Please sign in to comment.