Skip to content

Patch dependencies whose latest versions are no longer compatible with 1.75 #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading