2023-01-25 17:35:53 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-01-07 22:59:04 +00:00
|
|
|
#
|
|
|
|
# Downgrades every one of our dependencies in Cargo.lock to the
|
|
|
|
# earliest version listed in our Cargo.toml files. (And then
|
|
|
|
# re-upgrades a few second-order dependencies that aren't actually
|
|
|
|
# supported by our first-order dependencies in their oldest versions.)
|
2022-04-28 19:23:50 +01:00
|
|
|
#
|
|
|
|
# The purpose of this script is to make sure that we are actually
|
|
|
|
# compatible with the versions listed in our Cargo.toml files.
|
|
|
|
# Without testing this, we could wind up with code that built
|
|
|
|
# successfully with the versions listed in Cargo.lock, while declaring
|
|
|
|
# support for versions of our dependencies that won't actually work.
|
2022-01-07 22:59:04 +00:00
|
|
|
|
2022-05-25 12:10:55 +01:00
|
|
|
set -euo pipefail
|
|
|
|
|
2022-01-07 22:59:04 +00:00
|
|
|
cargo +nightly update -Z minimal-versions
|
|
|
|
cargo update \
|
|
|
|
-p crc32fast \
|
2022-07-05 11:57:10 +01:00
|
|
|
-p zeroize_derive:1.3.2 \
|
2022-04-28 17:21:24 +01:00
|
|
|
-p env_logger:0.5.0
|