#!/bin/bash set -euo pipefail topdir=$(dirname "$0") cd "$topdir" version="0.4.0" # Update all of the Cargo.toml files. # echo "Updating crate versions to $version" # Update the version number of this crate to $version. sed -i.bk -e "s/^version = .*/version = \"$version\"/" Cargo.toml # Update our local Cargo.lock (not checked in). cargo update ./test-all.sh # Commands needed to publish. # # Note that libraries need to be published in topological order. echo git commit -a -m "\"Bump version to $version"\" echo git push echo cargo publish --manifest-path Cargo.toml