summaryrefslogtreecommitdiff
path: root/maint/crate_versions
blob: d591ba24195c5bbc502e27d23c3d135289e29f99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/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