aboutsummaryrefslogtreecommitdiff
path: root/maint/semver-checks
blob: d71900ef95a271f3d44f6125fc19e1df4d9012b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
#
# Run "cargo-semver-checks" on each of our crates, with the "full" features
# set, comparing against a provided arti version.
#
# You will need cargo semver-checks >= 0.22.1.

set -euo pipefail

if [ -z "${1-}" ]; then
	echo "Usage: $0 [git-tag]"
	echo "Script will run cargo-semver-checks on changes since [git-tag]."
	exit 1
fi
LAST_VERSION="$1"

cargo semver-checks \
      --only-explicit-features \
      --workspace \
      --features full \
      --baseline-rev "$LAST_VERSION"