1 2 3 4 5 6 7
#!/usr/bin/env bash set -ex : "${TARGET?The TARGET environment variable must be set.}" ! cargo build --target "${TARGET}"