diff options
Diffstat (limited to 'ci/check-minimal-versions.sh')
-rw-r--r-- | ci/check-minimal-versions.sh | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/ci/check-minimal-versions.sh b/ci/check-minimal-versions.sh deleted file mode 100644 index 6152c15..0000000 --- a/ci/check-minimal-versions.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -# Check all public crates with minimal version dependencies. -# -# Note that this script modifies Cargo.toml and Cargo.lock while this script is -# running, and it is an error if there are any unstaged changes. -# -# Refs: -# * minimal versions: https://github.com/rust-lang/cargo/issues/5657 -# * features 2.0: https://github.com/rust-lang/cargo/issues/8088 - -set -euo pipefail - -# This script modifies Cargo.toml and Cargo.lock, so make sure there are no -# unstaged changes. -git diff --exit-code - -# 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 -Zminimal-versions -# Run check for all public members of the workspace. -cargo hack check --workspace --all-features --ignore-private -Zfeatures=all - -# Restore original Cargo.toml and Cargo.lock. -git checkout . |