#!/bin/bash # # Update Cargo.lock.minimal. # # Run manually as needed. The Cargo.lock.minimal is used by # the minimal-versions test in .gitlab-ci.yml. # # Any arguments are passed through to "cargo update". set -euo pipefail # CARGO=nailing-cargo maint/update-minimal-versions trap ' rc=$? mv Cargo.lock.aside Cargo.lock exit $rc ' 0 mv Cargo.lock Cargo.lock.aside cp Cargo.lock.minimal Cargo.lock ${CARGO-cargo} +nightly update -Z minimal-versions "$@" mv Cargo.lock Cargo.lock.minimal