Files
wasmtime/scripts/format-all.sh
2019-11-08 10:41:21 -08:00

13 lines
216 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
# Format all sources using rustfmt.
topdir=$(dirname "$0")/..
cd "$topdir"
# Make sure we can find rustfmt.
export PATH="$PATH:$HOME/.cargo/bin"
exec cargo +stable fmt --all -- "$@"