#!/bin/bash set -e # Patch Cargo.toml version from VERSION file before build VERSION=$(cat VERSION) sed -i 's/^version = ".*"/version = "'"$VERSION"'"/' Cargo.toml exec cargo build