Commit 6ed2e0c3 authored by Nick Mathewson's avatar Nick Mathewson 🦀
Browse files

Script to list current version of every crate.

parent f2658437
Loading
Loading
Loading
Loading

maint/crate_versions

0 → 100755
+15 −0
Original line number Diff line number Diff line
#!/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