aboutsummaryrefslogtreecommitdiff
path: root/maint/crate_versions
blob: 0d42b0fdc3d47986d26b78d8d2888e44c9061f23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
#
# List the current version of every crate.

set -euo pipefail

TOP=$(dirname "$0")/..

for crate in $("${TOP}/maint/list_crates") ; do
    printf "%-16s " "$crate:"
    grep ^version "$TOP/crates/$crate/Cargo.toml" | \
	head -1 | \
	sed 's/^version *= *//' |\
	tr -d '"'
done