ci: check for minimal versions with tokio_unstable (#4224)

This commit is contained in:
Alice Ryhl
2021-11-11 21:53:15 +01:00
committed by GitHub
parent f45320a9c0
commit 579f61106d
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -248,6 +248,16 @@ jobs:
# Update Cargo.lock to minimal version dependencies.
cargo update -Z minimal-versions
cargo hack check --all-features --ignore-private
- name: "check --all-features --unstable -Z minimal-versions"
env:
RUSTFLAGS: --cfg tokio_unstable -Dwarnings
run: |
# Remove dev-dependencies from Cargo.toml to prevent the next `cargo update`
# from determining minimal versions based on dev-dependencies.
cargo hack --remove-dev-deps --workspace
# Update Cargo.lock to minimal version dependencies.
cargo update -Z minimal-versions
cargo hack check --all-features --ignore-private
fmt:
name: fmt